From 3818e9531f35214b136b3b50daa52e8724874a08 Mon Sep 17 00:00:00 2001 From: ShittyKopper Date: Sat, 6 Jan 2024 19:28:38 +0300 Subject: [PATCH] upd: make note footer wider on smaller screens https://git.gay/eepy.zone/Sharkey/commit/3cc8320eb7d840e2a1bf458d4adfd8f41ac43e26 Co-authored-by: blueb --- packages/frontend/src/components/MkNote.vue | 7 +++--- packages/frontend/src/components/SkNote.vue | 7 +++--- .../src/components/SkNoteDetailed.vue | 25 ++++++++++--------- .../frontend/src/components/SkNoteSub.vue | 13 ++++------ 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index aee74138c2..fa35c59aaf 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -854,12 +854,13 @@ function emitUpdReaction(emoji: string, delta: number) { } .footer { + display: flex; + align-items: center; + justify-content: space-between; position: relative; z-index: 1; margin-top: 0.4em; - width: max-content; - min-width: min-content; - max-width: fit-content; + max-width: 400px; } &:hover > .article > .main > .footer > .footerButton { diff --git a/packages/frontend/src/components/SkNote.vue b/packages/frontend/src/components/SkNote.vue index 0e00b60daf..0bad3fd61d 100644 --- a/packages/frontend/src/components/SkNote.vue +++ b/packages/frontend/src/components/SkNote.vue @@ -855,12 +855,13 @@ function emitUpdReaction(emoji: string, delta: number) { } .footer { + display: flex; + align-items: center; + justify-content: space-between; position: relative; z-index: 1; margin-top: 0.4em; - width: max-content; - min-width: min-content; - max-width: fit-content; + max-width: 400px; } &:hover > .article > .main > .footer > .footerButton { diff --git a/packages/frontend/src/components/SkNoteDetailed.vue b/packages/frontend/src/components/SkNoteDetailed.vue index cf54d9d50e..18cba35c0a 100644 --- a/packages/frontend/src/components/SkNoteDetailed.vue +++ b/packages/frontend/src/components/SkNoteDetailed.vue @@ -112,16 +112,16 @@ SPDX-License-Identifier: AGPL-3.0-only {{ appearNote.channel.name }} -