From 98bac30c0207eeb2b3fe11b6a46f8df4b0bfb6a1 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Thu, 8 Oct 2026 14:21:43 +0200 Subject: [PATCH] Switch between List and Grid view fix #1 --- public/static/icon_64.svg | 3 +++ src/App.vue | 53 ++++++++++++++++++++++++++++++++++----- src/assets/main.css | 48 +++++++++++++++++++++++++++++------ 3 files changed, 90 insertions(+), 14 deletions(-) diff --git a/public/static/icon_64.svg b/public/static/icon_64.svg index 4941982..ef1d4c6 100644 --- a/public/static/icon_64.svg +++ b/public/static/icon_64.svg @@ -9,6 +9,9 @@ version="1.1" inkscape:version="1.4.4 (dcaf3e7d9e, 2026-05-05)" sodipodi:docname="icon_64.svg" + inkscape:export-filename="icon_192.png" + inkscape:export-xdpi="288" + inkscape:export-ydpi="288" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:xlink="http://www.w3.org/1999/xlink" diff --git a/src/App.vue b/src/App.vue index c968e45..67e9d59 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,15 @@ diff --git a/src/assets/main.css b/src/assets/main.css index aade4aa..1414def 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -20,6 +20,19 @@ main { overflow: auto; } +footer { + display: flex; + border-top-style: solid; + border-top-color: var(--light-gray); + border-top-width: 1px; +} + +footer button { + height: 48px; + width: 48px; + background: transparent; +} + body, textarea, input, @@ -29,9 +42,7 @@ pre { } body, -button, -a, -label { +button { color: var(--dark); } @@ -119,21 +130,38 @@ button#stop { #presetsItems { display: flex; - justify-content: center; +} + +#presetsItems.list { + flex-direction: column; + width: stretch; +} + +#presetsItems.grid { align-self: center; flex-wrap: wrap; + justify-content: center; } .presetItem { - min-width: 86px; + display: flex; border-width: 1px; border-color: var(--light-gray); border-style: solid; border-radius: 4px; - margin: 4px; - padding: 4px; - text-align: center; background-color: var(--white); + margin: 4px; +} + +#presetsItems.list .presetItem { + align-items: center; + +} + +#presetsItems.grid .presetItem { + min-width: 86px; + text-align: center; + flex-direction: column; } .presetItem.selected { @@ -150,4 +178,8 @@ input[type="number"]::-webkit-inner-spin-button { input[type="number"] { -moz-appearance: textfield; appearance: textfield; +} + +.grow { + flex-grow: 1; } \ No newline at end of file