forked from cory/tildefriends
feat(ssb): show the name of the tab if the screen is large enough
This commit is contained in:
parent
fae2771645
commit
0b4ac2b355
@ -339,6 +339,13 @@ class TfElement extends LitElement {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let tabs = html`
|
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">
|
<div class="w3-bar w3-theme-l1">
|
||||||
${Object.entries(k_tabs).map(
|
${Object.entries(k_tabs).map(
|
||||||
([k, v]) => html`
|
([k, v]) => html`
|
||||||
@ -351,6 +358,7 @@ class TfElement extends LitElement {
|
|||||||
@click=${() => self.set_tab(v)}
|
@click=${() => self.set_tab(v)}
|
||||||
>
|
>
|
||||||
${k}
|
${k}
|
||||||
|
<span class="hide-on-small-screens">${v}</span>
|
||||||
</button>
|
</button>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user