From ce6b2448ced1101a4f0f8eeeb0d48378d40f696a Mon Sep 17 00:00:00 2001
From: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Date: Sun, 16 Mar 2025 14:05:58 +0900
Subject: enhance(frontend): 投稿フォームの設定メニューを改良 (#14804)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* enhance(frontend): 投稿フォームの設定メニューを改良
* Update Changelog
* indent
* MkMenuのitemを切り出して共通化
* remove unused expose
* fix: ドロワーなどのOptionが当たらない問題を修正
* 他のpopupMenuの項目選択時と挙動をあわせる
* チュートリアルで詰む問題を修正
* Revert "MkMenuのitemを切り出して共通化"
This reverts commit ce3679798c5b642dd0e47056f70657e46b382b5e.
* enhance: slotで共通化
* Update MkPostFormOtherMenu.vue
* remove duplicated locale key
* refactor: メニューの定義をMkPostForm側で行うように
* Update CHANGELOG.md
* [ci skip] Update MkPostFormOtherMenu.vue
* Update MkPostForm.vue
* Update CHANGELOG.md
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
---
packages/frontend/src/components/MkMenu.vue | 333 +++++++++++++++-------------
1 file changed, 173 insertions(+), 160 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 aa53c19c33..954cfa58be 100644
--- a/packages/frontend/src/components/MkMenu.vue
+++ b/packages/frontend/src/components/MkMenu.vue
@@ -15,9 +15,6 @@ SPDX-License-Identifier: AGPL-3.0-only
@focusin.passive.stop="() => {}"
>
{}"
@contextmenu.self.prevent="() => {}"
>
-
-
-
- {{ item.text }}
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ i18n.ts.none }}
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
-
-
-
-
-
- {{ i18n.ts.none }}
-
+
+
@@ -429,7 +435,7 @@ onBeforeUnmount(() => {
.root {
&.center {
> .menu {
- > .item {
+ .item {
text-align: center;
}
}
@@ -439,7 +445,7 @@ onBeforeUnmount(() => {
> .menu {
min-width: 230px;
- > .item {
+ .item {
padding: 6px 20px;
font-size: 0.95em;
line-height: 24px;
@@ -452,36 +458,38 @@ 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;
- > .item {
- font-size: 1em;
- padding: 12px 24px;
+ > .menuItems {
+ padding: 12px 0 max(env(safe-area-inset-bottom, 0px), 12px) 0;
- &::before {
- width: calc(100% - 24px);
- border-radius: 12px;
- }
+ > .item {
+ font-size: 1em;
+ padding: 12px 24px;
+
+ &::before {
+ width: calc(100% - 24px);
+ border-radius: 12px;
+ }
- > .icon {
- margin-right: 14px;
- width: 24px;
+ > .icon {
+ margin-right: 14px;
+ width: 24px;
+ }
}
- }
- > .divider {
- margin: 12px 0;
+ > .divider {
+ margin: 12px 0;
+ }
}
}
}
}
.menu {
- padding: 8px 0;
box-sizing: border-box;
max-width: 100vw;
min-width: 200px;
@@ -493,6 +501,11 @@ onBeforeUnmount(() => {
}
}
+.menuItems {
+ padding: 8px 0;
+ box-sizing: border-box;
+}
+
.item {
display: flex;
align-items: center;
--
cgit v1.2.3-freya