Skip to content

Commit

Permalink
Fix broken replace_tabs option
Browse files Browse the repository at this point in the history
  • Loading branch information
gadgetchnnel committed Mar 26, 2022
1 parent 1c50a49 commit 2081cc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/lovelace-header-cards.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,10 @@ class HeaderCards {
if(tabs || mainTitle){
if(replaceTabs){
(tabs || mainTitle).style.display = "none";
outerDiv.style.display = "flex";
outerDiv.style.visibility = "visible";
}
else{
//outerDiv.style.visibility = "visible";

setTimeout(function(){
setTimeout(function(){
if(tabs){
let tabsContent = tabs.shadowRoot && tabs.shadowRoot.querySelector("#tabsContent");
tabsContent.style.setProperty('width', 'auto', 'important');
Expand Down

0 comments on commit 2081cc2

Please sign in to comment.