-
キャッシュの削除
-
+
キャッシュ
+
- 使用量:
-
-
- {{ prettifyFileSize(usage) }} ({{ key }})
-
-
-
- {{ prettifyFileSize(cacheData.usage) }}
-
+ {{ prettifyFileSize(cacheData.usage) }}
-
-
@@ -34,17 +18,8 @@
@@ -112,9 +51,6 @@ const clearThumbnailCache = async () => {
.header {
margin-bottom: 8px;
}
-.content {
- margin-left: 12px;
-}
.usage {
margin-bottom: 8px;
}
diff --git a/src/components/Settings/BrowserTab/ModifierKeys.vue b/src/components/Settings/BrowserTab/ModifierKeys.vue
index 6740db4fb..3d1eada6f 100644
--- a/src/components/Settings/BrowserTab/ModifierKeys.vue
+++ b/src/components/Settings/BrowserTab/ModifierKeys.vue
@@ -2,20 +2,24 @@
修飾キーとして利用するキー
-
+
+ {{ getModifierKeyName('shift') }}
+
-
+
+ {{ getModifierKeyName('alt') }}
+
-
+
+ {{ getModifierKeyName('ctrl') }}
+
-
+
+ {{ getModifierKeyName('macCtrl') }}
+
diff --git a/src/components/UI/FormCheckbox.vue b/src/components/UI/FormCheckbox.vue
index 86d4914e7..aae005974 100644
--- a/src/components/UI/FormCheckbox.vue
+++ b/src/components/UI/FormCheckbox.vue
@@ -1,7 +1,7 @@
-
@@ -12,11 +12,9 @@ import { useModelValueSyncer } from '/@/composables/useModelSyncer'
const props = withDefaults(
defineProps<{
modelValue?: boolean
- label?: string
}>(),
{
- modelValue: false,
- label: ''
+ modelValue: false
}
)
@@ -28,8 +26,11 @@ const value = useModelValueSyncer(props, emit)
diff --git a/src/lib/basic/file.ts b/src/lib/basic/file.ts
index 785ee5a82..3da90d8e5 100644
--- a/src/lib/basic/file.ts
+++ b/src/lib/basic/file.ts
@@ -59,6 +59,6 @@ const sizePrefix = ['', 'K', 'M', 'G']
/** byteを適当にKBなどに直す */
export const prettifyFileSize = (byte: number) => {
- const s = Math.floor(Math.log10(byte) / 3)
+ const s = byte ? Math.floor(Math.log10(byte) / 3) : 0
return `${Math.round((byte / 1000 ** s) * 100) / 100}${sizePrefix[s]}B`
}
diff --git a/src/store/ui/modal/states.ts b/src/store/ui/modal/states.ts
index a17bd29e2..3a5833a8f 100644
--- a/src/store/ui/modal/states.ts
+++ b/src/store/ui/modal/states.ts
@@ -23,6 +23,7 @@ export type ModalStateType =
| 'group-member-edit'
| 'group-admin-add'
| 'group-member-add'
+ | 'settings-cache-clear'
| 'settings-theme-edit'
export type ModalState =
@@ -40,6 +41,7 @@ export type ModalState =
| GroupMemberEditModalState
| GroupAdminAddModalState
| GroupMemberAddModalState
+ | SettingsCacheClearModalState
| SettingsThemeEditState
interface BaseModalState {
@@ -125,6 +127,10 @@ interface GroupMemberAddModalState extends BaseModalState {
id: UserGroupId
}
+interface SettingsCacheClearModalState extends BaseModalState {
+ type: 'settings-cache-clear'
+}
+
interface SettingsThemeEditState extends BaseModalState {
type: 'settings-theme-edit'
}