diff --git a/locales/index.d.ts b/locales/index.d.ts
index a3cb8e1799..172ef94b9b 100644
--- a/locales/index.d.ts
+++ b/locales/index.d.ts
@@ -10678,6 +10678,10 @@ export interface Locale extends ILocale {
* 全体を埋め尽くす
*/
"repeat": string;
+ /**
+ * 余白
+ */
+ "padding": string;
};
}
declare const locales: {
diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 7f098e0e0d..dcd7190b63 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -2847,3 +2847,4 @@ _watermarkEditor:
driveFileTypeWarnDescription: "画像ファイルを選択してください"
repeatSetting: "描画モード"
repeat: "全体を埋め尽くす"
+ padding: "余白"
diff --git a/packages/frontend/src/components/MkInput.vue b/packages/frontend/src/components/MkInput.vue
index 08817fd6a8..9afe4758c6 100644
--- a/packages/frontend/src/components/MkInput.vue
+++ b/packages/frontend/src/components/MkInput.vue
@@ -27,8 +27,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:list="id"
:min="min"
:max="max"
- @focus="focused = true"
- @blur="focused = false"
+ @focus="onFocus"
+ @blur="onBlur"
@keydown="onKeydown($event)"
@input="onInput"
>
@@ -80,6 +80,8 @@ const emit = defineEmits<{
(ev: 'change', _ev: KeyboardEvent): void;
(ev: 'keydown', _ev: KeyboardEvent): void;
(ev: 'enter', _ev: KeyboardEvent): void;
+ (ev: 'focus', _ev: FocusEvent): void;
+ (ev: 'blur', _ev: FocusEvent): void;
(ev: 'update:modelValue', value: string | number): void;
}>();
@@ -114,6 +116,14 @@ const onKeydown = (ev: KeyboardEvent) => {
emit('enter', ev);
}
};
+const onFocus = (ev: FocusEvent) => {
+ focused.value = true;
+ emit('focus', ev);
+};
+const onBlur = (ev: FocusEvent) => {
+ focused.value = false;
+ emit('blur', ev);
+};
const updated = () => {
changed.value = false;
diff --git a/packages/frontend/src/components/MkWatermarkEditorDialog.padding.vue b/packages/frontend/src/components/MkWatermarkEditorDialog.padding.vue
new file mode 100644
index 0000000000..7451d09b5f
--- /dev/null
+++ b/packages/frontend/src/components/MkWatermarkEditorDialog.padding.vue
@@ -0,0 +1,66 @@
+
+
+
+