From: PhiTux Date: Tue, 30 Sep 2025 21:03:36 +0000 (+0200) Subject: css fixes for mobile X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=dfb822d8b3d45011ddb5d43e668798d219c6977c;p=DailyTxT.git css fixes for mobile --- diff --git a/frontend/src/routes/(authed)/+layout.svelte b/frontend/src/routes/(authed)/+layout.svelte index e27935a..9ac51a0 100644 --- a/frontend/src/routes/(authed)/+layout.svelte +++ b/frontend/src/routes/(authed)/+layout.svelte @@ -1121,8 +1121,10 @@ > {/if} -
- +
+
- +
@@ -2629,6 +2633,21 @@ background-color: #b8b8b8; } + @media (max-width: 450px) { + .modeSliderIcon { + font-size: 0.8rem !important; + } + .selectMode { + padding-left: 1rem !important; + } + } + + @media (max-width: 600px) { + .dailytxt { + display: none; + } + } + .dailytxt { color: #f57c00; font-size: 1.8rem; diff --git a/frontend/src/routes/(authed)/write/+page.svelte b/frontend/src/routes/(authed)/write/+page.svelte index d1a8453..9fd93e5 100644 --- a/frontend/src/routes/(authed)/write/+page.svelte +++ b/frontend/src/routes/(authed)/write/+page.svelte @@ -19,7 +19,8 @@ faClockRotateLeft, faArrowLeft, faArrowRight, - faTrash + faTrash, + faBars } from '@fortawesome/free-solid-svg-icons'; import Fa from 'svelte-fa'; import { v4 as uuidv4 } from 'uuid'; @@ -1183,39 +1184,69 @@ ontouchstart={onHeaderTouchStart} ontouchend={onHeaderTouchEnd} > -
- {new Date( - Date.UTC($selectedDate.year, $selectedDate.month - 1, $selectedDate.day) - ).toLocaleDateString($tolgee.getLanguage(), { weekday: 'long', timeZone: 'UTC' })}
- {new Date( - Date.UTC($selectedDate.year, $selectedDate.month - 1, $selectedDate.day) - ).toLocaleDateString($tolgee.getLanguage(), { - day: '2-digit', - month: '2-digit', - year: 'numeric', - timeZone: 'UTC' - })} -
-
-
{$t('log.written_on')}
- {logDateWritten} +
+
+ {new Date( + Date.UTC($selectedDate.year, $selectedDate.month - 1, $selectedDate.day) + ).toLocaleDateString($tolgee.getLanguage(), { weekday: 'long', timeZone: 'UTC' })}
+ {new Date( + Date.UTC($selectedDate.year, $selectedDate.month - 1, $selectedDate.day) + ).toLocaleDateString($tolgee.getLanguage(), { + day: '2-digit', + month: '2-digit', + year: 'numeric', + timeZone: 'UTC' + })} +
+
+
{$t('log.written_on')}
+ {logDateWritten} +
- +
- -
+
+ +
@@ -2017,13 +2048,11 @@ } :global(body[data-bs-theme='dark'] .TinyMDE) { - backdrop-filter: blur(8px) saturate(130%); background-color: rgba(50, 50, 50, 0.8); color: #f0f0f0; } :global(body[data-bs-theme='light'] .TinyMDE) { - backdrop-filter: blur(8px) saturate(130%); background-color: rgba(255, 255, 255, 0.7); color: #1f1f1f; } @@ -2068,14 +2097,60 @@ border-top-right-radius: 5px; } + .header-actions-mobile { + display: none; + } + .header-btn-desktop { + display: flex; + } + + @media (max-width: 550px) { + .header-actions-mobile { + display: flex; + } + .header-btn-desktop { + display: none !important; + } + } + @media (min-width: 551px) { + .header-actions-mobile { + display: none !important; + } + .header-btn-desktop { + display: flex !important; + } + } + .textAreaDate { border-right: 1px solid #6a6a6a; padding: 0.25em; } + @media (max-width: 500px) { + .textAreaWrittenAt { + font-size: 0.9rem; + } + } + + @media (max-width: 450px) { + .textAreaWrittenAt { + font-size: 0.8rem; + } + .textAreaDate { + font-size: 0.9rem; + } + } + + @media (max-width: 400px) { + .textAreaWrittenAt { + font-size: 0.7rem; + } + } + .textAreaWrittenAt, .textAreaHistory { padding: 0.25em; + align-content: center; } .textAreaDelete {