SSB app: show the name of the tab if the screen is large enough #61

Closed
tasiaiso wants to merge 1 commits from tasiaiso/tildefriends:tasiaiso-ssb-app2 into main
Showing only changes of commit 773396ac85 - Show all commits

View File

@ -340,6 +340,13 @@ class TfElement extends LitElement {
};
let tabs = html`
<style>
@media only screen and (max-width: 650px) {
.hide-on-small-screens {
display: none;
}
}
</style>
<div class="w3-bar w3-theme-l1">
${Object.entries(k_tabs).map(
([k, v]) => html`
@ -352,6 +359,7 @@ class TfElement extends LitElement {
@click=${() => self.set_tab(v)}
>
${k}
<span class="hide-on-small-screens">${v}</span>
</button>
`
)}