From 119e9333665ef939e2e5ade254e5e9a3668a5852 Mon Sep 17 00:00:00 2001 From: Yoshitaka Totsuka Date: Sun, 11 Feb 2024 20:45:04 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20CSS=E6=8C=87=E5=AE=9A=E3=82=92?= =?UTF-8?q?=E7=A7=BB=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/src/Main.elm | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/example/src/Main.elm b/example/src/Main.elm index f3e3dd5..07423ee 100644 --- a/example/src/Main.elm +++ b/example/src/Main.elm @@ -667,19 +667,21 @@ playground { isDarkMode, preview, controlSections } = , rowGap (Css.em 0.5) , borderRadius (Css.em 1) , palette (Palette.propsPanel isDarkMode) - , children - [ everything - [ padding (Css.em 0.75) - , borderRadius (Css.em 0.5) - , palette (Palette.propsField isDarkMode) - ] - ] ] ] (List.map (.controls >> List.map Control.render - >> div [ css [ displayFlex, flexDirection column, rowGap (Css.em 1) ] ] + >> div + [ css + [ padding (Css.em 0.75) + , displayFlex + , flexDirection column + , rowGap (Css.em 1) + , borderRadius (Css.em 0.5) + , palette (Palette.propsField isDarkMode) + ] + ] ) controlSections )