From e2755fd107ed4db0bcc2712b608fb6fce5fe1f9a Mon Sep 17 00:00:00 2001 From: ByteDice Date: Fri, 2 Jan 2026 12:52:55 +0100 Subject: [PATCH] fixed some bugs in /toys/ --- toys/index.html | 25 ++++++++----------------- toys/style.css | 15 ++++++++++----- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/toys/index.html b/toys/index.html index 2122c12..eee215c 100644 --- a/toys/index.html +++ b/toys/index.html @@ -28,10 +28,8 @@
- - -
+
- -
  • - -
  • - +
    + + +
    diff --git a/toys/style.css b/toys/style.css index f60734a..e08cf7e 100644 --- a/toys/style.css +++ b/toys/style.css @@ -1,7 +1,9 @@ .toyContainer { border: none; - display: grid; - width: 100%; + display: inline-grid; + width: 25%; + min-width: 100%; + max-width: 512px; grid-template-columns: 1fr; grid-template-rows: calc(32px * var(--pxDensity)) 1fr; color: inherit; @@ -42,9 +44,12 @@ button:active { } .toyUl { padding: calc(3px * var(--pxDensity)); - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: calc(6px * var(--pxDensity)) + display: inline-flex; + width: fit-content; + justify-content: flex-start; + flex-wrap: wrap; + gap: calc(6px * var(--pxDensity)); + margin: 0 auto; } .toyLi { margin: 0;