From 9d1a755fdceedc7420596a11f860c651ee9bda79 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 28 Jun 2021 18:06:33 +1000 Subject: [PATCH] use css columns instead of grid Alternative approach to #1255 thanks to Hikaru and Henrik for the margin fix, and Matthias for the initial idea and prototypes! --- ts/deckoptions/DeckOptionsPage.svelte | 80 +++++++++++++++++---------- ts/deckoptions/TitledContainer.svelte | 6 +- 2 files changed, 55 insertions(+), 31 deletions(-) diff --git a/ts/deckoptions/DeckOptionsPage.svelte b/ts/deckoptions/DeckOptionsPage.svelte index 9838c2e84..90384cc44 100644 --- a/ts/deckoptions/DeckOptionsPage.svelte +++ b/ts/deckoptions/DeckOptionsPage.svelte @@ -57,37 +57,57 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - - - - - - - - - - - - - - - - {#if state.v3Scheduler} + +
- + - {/if} - - - - - - - - - - - - + + + + + + + + + + + + + {#if state.v3Scheduler} + + + + {/if} + + + + + + + + + + + + + + + + +
+ + diff --git a/ts/deckoptions/TitledContainer.svelte b/ts/deckoptions/TitledContainer.svelte index 03c669f36..bc3870c4f 100644 --- a/ts/deckoptions/TitledContainer.svelte +++ b/ts/deckoptions/TitledContainer.svelte @@ -9,7 +9,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html export let api: Record | undefined = undefined; -
+

{title}

@@ -21,4 +21,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html h1 { border-bottom: 1px solid var(--medium-border); } + + .container-fluid { + break-inside: avoid; + }