+ {#each cards as card, i (card.id)}
+ {#if !card.hidden && card.size > 0}
+
-
{card.title}
-
{#if card.link}
{/if}
-
+
+
+
+
+ {/if}
+ {/each}
+
+ {#each cards as card, i (card.id)}
+ {#if card.size === 0}
+
+
+ {#if card.link}
+
+ {/if}
+
+
{card.title}
+
+ expand(i)} icon="visibility" flat/>
{/if}
@@ -155,29 +177,28 @@ onMount(() => {
flex: 1 0 auto;
display: flex;
flex-direction: column;
- width: 26em;
max-width: 100%;
background: var(--body_background);
border-radius: 8px;
padding: 8px;
text-align: initial;
- max-height: 500px;
}
.card_component {
flex: 1 1 auto;
overflow: auto;
}
-.card_wide {
- flex-basis: auto;
- width: 100%;
- max-height: none;
-}
+.size_1 { width: 400px; }
+.size_1 > .card_component { max-height: 400px; }
+.size_2 { width: 800px; }
+.size_2 > .card_component { max-height: 500px; }
+.size_3 { width: 1200px; }
+.size_3 > .card_component { max-height: 600px; }
.title_box {
flex: 0 0 auto;
display: flex;
flex-direction: row;
- align-items: flex-start;
+ align-items: center;
border-bottom: 1px solid var(--separator);
}
.title_box > h2 {