From a814395127aa1b4ea643fb40235e3e58c747b77f Mon Sep 17 00:00:00 2001
From: syuilo <4439005+syuilo@users.noreply.github.com>
Date: Sun, 16 Mar 2025 17:21:20 +0900
Subject: Revert "enhance(frontend): 投稿フォームの設定メニューを改良 (#14804)"
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This reverts commit ce6b2448ced1101a4f0f8eeeb0d48378d40f696a.
---
packages/frontend/src/components/MkMenu.vue | 333 +++++++++++++---------------
1 file changed, 160 insertions(+), 173 deletions(-)
(limited to 'packages/frontend/src/components/MkMenu.vue')
diff --git a/packages/frontend/src/components/MkMenu.vue b/packages/frontend/src/components/MkMenu.vue
index 954cfa58be..aa53c19c33 100644
--- a/packages/frontend/src/components/MkMenu.vue
+++ b/packages/frontend/src/components/MkMenu.vue
@@ -15,6 +15,9 @@ SPDX-License-Identifier: AGPL-3.0-only
@focusin.passive.stop="() => {}"
>
{}"
@contextmenu.self.prevent="() => {}"
>
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n.ts.none }}
+
+
+
+ {{ item.text }}
-
-
+
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n.ts.none }}
+
@@ -435,7 +429,7 @@ onBeforeUnmount(() => {
.root {
&.center {
> .menu {
- .item {
+ > .item {
text-align: center;
}
}
@@ -445,7 +439,7 @@ onBeforeUnmount(() => {
> .menu {
min-width: 230px;
- .item {
+ > .item {
padding: 6px 20px;
font-size: 0.95em;
line-height: 24px;
@@ -458,38 +452,36 @@ onBeforeUnmount(() => {
margin: auto;
> .menu {
+ padding: 12px 0 max(env(safe-area-inset-bottom, 0px), 12px) 0;
width: 100%;
border-radius: 24px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
- > .menuItems {
- padding: 12px 0 max(env(safe-area-inset-bottom, 0px), 12px) 0;
-
- > .item {
- font-size: 1em;
- padding: 12px 24px;
-
- &::before {
- width: calc(100% - 24px);
- border-radius: 12px;
- }
+ > .item {
+ font-size: 1em;
+ padding: 12px 24px;
- > .icon {
- margin-right: 14px;
- width: 24px;
- }
+ &::before {
+ width: calc(100% - 24px);
+ border-radius: 12px;
}
- > .divider {
- margin: 12px 0;
+ > .icon {
+ margin-right: 14px;
+ width: 24px;
}
}
+
+ > .divider {
+ margin: 12px 0;
+ }
}
}
}
.menu {
+ padding: 8px 0;
box-sizing: border-box;
max-width: 100vw;
min-width: 200px;
@@ -501,11 +493,6 @@ onBeforeUnmount(() => {
}
}
-.menuItems {
- padding: 8px 0;
- box-sizing: border-box;
-}
-
.item {
display: flex;
align-items: center;
--
cgit v1.2.3-freya