From d777cbf5b19266f088b337df28e50204b50d3d73 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 10 Jun 2021 10:20:47 +0100 Subject: [PATCH] Add default styles to containers to improve component layouts --- packages/standard-components/src/Container.svelte | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/standard-components/src/Container.svelte b/packages/standard-components/src/Container.svelte index b271be9e45..8b6d295dbd 100644 --- a/packages/standard-components/src/Container.svelte +++ b/packages/standard-components/src/Container.svelte @@ -36,12 +36,19 @@ .empty { border: 2px dashed rgba(0, 0, 0, 0.25); } - .direction-row { + .direction-row, + .direction-column { display: flex; + max-width: 100%; + } + .direction-row :global(*), + .direction-column :global(*) { + max-width: 100%; + } + .direction-row { flex-direction: row; } .direction-column { - display: flex; flex-direction: column; }