Better CSS for the ssb app to fill the iframe?

This commit is contained in:
Cory McWilliams 2024-04-10 18:43:48 -04:00
parent c674cca482
commit b9a73106ed
3 changed files with 11 additions and 9 deletions

View File

@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🐌", "emoji": "🐌",
"previous": "&W98iW3aUxCvTQovPohAd500SpJyOEwsVPDe4hoHaVMg=.sha256" "previous": "&sR39JhvUCRlOv7hdEWV81RWWkyoPGLg6u4w+BfqUE9s=.sha256"
} }

View File

@ -10,7 +10,7 @@
} }
</style> </style>
</head> </head>
<body style="margin: 0; padding: 0; background: #000"> <body style="margin: 0; padding: 0">
<tf-app/> <tf-app/>
<script> <script>
window.litDisableBundleWarning = true; window.litDisableBundleWarning = true;

View File

@ -352,7 +352,7 @@ class TfElement extends LitElement {
}; };
let tabs = html` let tabs = html`
<div class="w3-bar w3-theme-l1 min-height: 100%"> <div class="w3-bar w3-theme-l1">
${Object.entries(k_tabs).map( ${Object.entries(k_tabs).map(
([k, v]) => html` ([k, v]) => html`
<button <button
@ -375,13 +375,15 @@ class TfElement extends LitElement {
: html`<div>Select or create an identity.</div>` : html`<div>Select or create an identity.</div>`
: this.render_tab(); : this.render_tab();
return html` return html`
<div style="padding: 8px" class="w3-theme-dark"> <div style="width: 100vw; min-height: 100vh; height: 100%" class="w3-theme-dark">
<div style="padding: 8px">
${this.render_id_picker()} ${tabs} ${this.render_id_picker()} ${tabs}
${this.tags.map( ${this.tags.map(
(x) => html`<tf-tag tag=${x.tag} count=${x.count}></tf-tag>` (x) => html`<tf-tag tag=${x.tag} count=${x.count}></tf-tag>`
)} )}
${contents} ${contents}
</div> </div>
</div>
`; `;
} }
} }