mayker
(maykar (pronounced "maker" with a southern accent))
1045
Ah okay, I see the issue. Will put a fix in for it when I get the chance, but currently font size is set after custom css when breaking it into two lines with <br>.
Hi everyone !
I still have the issue with the 5th icon covered by a right arrow on a mobile device. It does not seem to have been fixed. Am I the only one with this problem ?
Thank you
Hello,
I am using the {{time}} built-in variable to replace the option button. While playing with the time/date settings of my phone and then opening the HA app, I noticed that {{time}} gives the client’s time, but not the server’s time.
In my opinion, I prefer to have my home time when checking the HA app in a different country/timezone. Is there a way to modify the behavior of {{time}} to get the server’s time instead of the client’s time ?
Thank you !
mayker
(maykar (pronounced "maker" with a southern accent))
1048
The tab’s/view’s icons/buttons are larger than just the size of the icon, they have padding on the sides. If any portion of that button is obscured then the arrows (chevrons) will appear. You can either disable chevrons via the CH settings UI or manually by adding chevrons: false to your config. Alternatively, you could reduce the padding of the tabs by adding this to your config all_tabs_css: "padding-left: 7px; padding-right: 7px;" or something similar. Increase or decrease the number 7 to your liking.
To get your servers time, replace {{time}} with this Jinja template {{(now().strftime('%I'))~now().strftime(':%M %p')}}
Hi Mayker,
Thank you very much for your quick help on this. Both issues are solved !
But just to be picky, in the original post, I mentioned that the chevrons are not here by default. They appear for some reason when the theme changes, and they disappear when I rotate twice the screen. So I am not sure if it’s really related to the left/right padding. Anyway, thanks for the quick fix !
Is it possible to close and open the sidebar ?
For me it always stays visible, until I disable it in custom_header, but then it seems really gone…
Other options ?
Updating to HACS to 1.6.0 breaks custom header 1.7.9 (and older version) function and accessibility. Reverting to HACS 1.5.2 restores custom header function and accessibility.
Is there a way to display the text under the icon AND increase the size?
This is to make the menu system easier to operate on a tablet.
I’m aware I can increase the size using the below code, but this throws off the menu underline.
all_tabs_css: 'zoom:1.50;'
Example:
mayker
(maykar (pronounced "maker" with a southern accent))
1058
No, but after some playing around with custom css I’ve found something that might be a better option for you. This will enlarge the entire header, including the active tab indicator:
header_css: 'zoom:1.50;'
Alternatively, you could hide the indicator all together and use icon color to show the active tab:
mayker
(maykar (pronounced "maker" with a southern accent))
1061
You could use reverse_button_direction: true to shift all buttons (not including tabs) from left to right to right to left.
If that’s not exactly what you’re looking for, you can use the method described in the comment here.
1 Like
mayker
(maykar (pronounced "maker" with a southern accent))
1062
If that’s a tablet that is always in that orientation (even if its not), you should give the newest feature a try with reversed buttons and your current setup:
Hoping that I’ve found and tagged everyone who had requested a way to center the header’s tabs in this thread at one point or another.
This is now possible with the new fit tabs feature fit_tabs: true. Adding this to your config will fill the width of the tab container with your tabs (as long as they all fit on the page).
But using this new feature with some custom css allows you to center your tabs in the middle of the header. It will take a bit of tweaking on your part, but not much. Just adjust the width in either of the examples below to fit your needs:
Width as percentage:
fit_tabs: true
tab_container_css: 'width: 50% !important; margin: auto !important;'
Width with pixels:
fit_tabs: true
tab_container_css: 'width: 700px !important; margin: auto !important;'