diff --git a/src/tailwind.config.js b/src/tailwind.config.js index 483d6ada..8070b0cd 100644 --- a/src/tailwind.config.js +++ b/src/tailwind.config.js @@ -7,6 +7,7 @@ module.exports = { content: ['./www/**/*.{html,js}'], theme: { screens: { + xxs: '450px', xs: '576px', sm: '640px', md: '768px', diff --git a/src/www/css/app.css b/src/www/css/app.css index cbb94d2e..19b9df72 100644 --- a/src/www/css/app.css +++ b/src/www/css/app.css @@ -548,6 +548,12 @@ video { width: 100%; } +@media (min-width: 450px) { + .container { + max-width: 450px; + } +} + @media (min-width: 576px) { .container { max-width: 576px; @@ -710,10 +716,6 @@ video { margin-right: 0.5rem; } -.mr-4 { - margin-right: 1rem; -} - .mt-0 { margin-top: 0px; } @@ -862,8 +864,8 @@ video { width: 100%; } -.min-w-24 { - min-width: 6rem; +.min-w-20 { + min-width: 5rem; } .max-w-3xl { @@ -878,6 +880,10 @@ video { flex-shrink: 0; } +.shrink-0 { + flex-shrink: 0; +} + .flex-grow { flex-grow: 1; } @@ -1151,10 +1157,6 @@ video { padding-bottom: 3rem; } -.pb-2 { - padding-bottom: 0.5rem; -} - .pb-20 { padding-bottom: 5rem; } @@ -1459,8 +1461,12 @@ video { opacity: 1; } -@media (min-width: 576px) { - .xs\:flex-row { +@media (min-width: 450px) { + .xxs\:ml-0 { + margin-left: 0px; + } + + .xxs\:flex-row { flex-direction: row; } } @@ -1532,18 +1538,10 @@ video { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } - .sm\:flex-row { - flex-direction: row; - } - .sm\:flex-row-reverse { flex-direction: row-reverse; } - .sm\:flex-nowrap { - flex-wrap: nowrap; - } - .sm\:items-start { align-items: flex-start; } @@ -1580,18 +1578,22 @@ video { } @media (min-width: 768px) { - .md\:ml-0 { - margin-left: 0px; - } - .md\:inline-block { display: inline-block; } + .md\:min-w-24 { + min-width: 6rem; + } + .md\:flex-row { flex-direction: row; } + .md\:gap-4 { + gap: 1rem; + } + .md\:px-0 { padding-left: 0px; padding-right: 0px; @@ -1600,6 +1602,11 @@ video { .md\:pb-0 { padding-bottom: 0px; } + + .md\:text-base { + font-size: 1rem; + line-height: 1.5rem; + } } @media (prefers-color-scheme: dark) { diff --git a/src/www/index.html b/src/www/index.html index b63f158f..20160e5f 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -87,11 +87,11 @@ -
-
+
+
-
+
-
+
-
@@ -183,7 +183,7 @@ {{client.transferRxCurrent | bytes}}/s - {{!uiDetailedStats ? " ยท " : ""}}{{new Date(client.latestHandshakeAt) | timeago}} @@ -192,10 +192,10 @@
+ class="flex gap-2 items-center shrink-0 text-gray-400 dark:text-neutral-400 text-xs mt-px -ml-4 xxs:ml-0"> -
+
@@ -214,7 +214,7 @@
-
+