ssb: Trying to get the sidebar to behave better. Fighting CSS.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 24m25s

This commit is contained in:
2024-12-29 12:44:42 -05:00
parent efcc710d91
commit baf125c450
3 changed files with 56 additions and 53 deletions

View File

@ -526,7 +526,7 @@ class TfElement extends LitElement {
let tabs = html`
<div
class="w3-bar w3-theme-l1"
style="position: sticky; top: 0; z-index: 10"
style="position: static; top: 0; z-index: 10"
>
<button
class="w3-bar-item w3-button w3-circle w3-ripple"
@ -563,10 +563,11 @@ class TfElement extends LitElement {
: this.render_tab();
return html`
<div
style="width: 100vw; min-height: 100vh; height: 100%"
style="width: 100vw; min-height: 100vh; height: 100vh; display: flex; flex-direction: column"
class="w3-theme-dark"
>
${tabs} ${contents}
<div style="flex: 0 0">${tabs}</div>
<div style="flex: 1 1; overflow: scroll; contain: layout">${contents}</div>
</div>
`;
}