- {{ $ts.default }}
+
+ {{ $ts.preview }}
+ {{ $ts.default }}
+
@@ -46,6 +49,7 @@ import FormRadios from '@/components/form/radios.vue';
import FromSlot from '@/components/form/slot.vue';
import FormButton from '@/components/ui/button.vue';
import FormSection from '@/components/form/section.vue';
+import FormSwitch from '@/components/form/switch.vue';
import * as os from '@/os';
import { defaultStore } from '@/store';
import * as symbols from '@/symbols';
@@ -57,6 +61,7 @@ export default defineComponent({
FromSlot,
FormRadios,
FormSection,
+ FormSwitch,
XDraggable,
},
@@ -80,6 +85,7 @@ export default defineComponent({
computed: {
reactionPickerWidth: defaultStore.makeGetterSetter('reactionPickerWidth'),
reactionPickerHeight: defaultStore.makeGetterSetter('reactionPickerHeight'),
+ reactionPickerUseDrawerForMobile: defaultStore.makeGetterSetter('reactionPickerUseDrawerForMobile'),
},
watch: {
diff --git a/packages/client/src/store.ts b/packages/client/src/store.ts
index 955d94a074..2290a21778 100644
--- a/packages/client/src/store.ts
+++ b/packages/client/src/store.ts
@@ -178,6 +178,10 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'device',
default: 1
},
+ reactionPickerUseDrawerForMobile: {
+ where: 'device',
+ default: true,
+ },
recentlyUsedEmojis: {
where: 'device',
default: [] as string[]