From fea741a2713b6dc5412d36550f14f5c0b3469ebd Mon Sep 17 00:00:00 2001 From: Lapor Chen <31620109+laporchen@users.noreply.github.com> Date: Sat, 5 Aug 2023 17:46:12 +0800 Subject: [PATCH 1/4] feat: add composables `useInteractions` --- src/composables/useInteractions.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/composables/useInteractions.ts diff --git a/src/composables/useInteractions.ts b/src/composables/useInteractions.ts new file mode 100644 index 0000000..c20bd47 --- /dev/null +++ b/src/composables/useInteractions.ts @@ -0,0 +1,9 @@ +import { useMediaQuery } from "@vueuse/core"; + +export default function useInteractions() { + const isDesktop = useMediaQuery("(min-width: 1024px)"); + + return { + isDesktop, + }; +} From 981f744eb41bd302c1f5f4e3d47796a77b1920d9 Mon Sep 17 00:00:00 2001 From: Lapor Chen <31620109+laporchen@users.noreply.github.com> Date: Sat, 5 Aug 2023 18:16:09 +0800 Subject: [PATCH 2/4] feat: add background-color to `TopBar` --- src/components/TopBar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TopBar.vue b/src/components/TopBar.vue index 3304f51..8cc8428 100644 --- a/src/components/TopBar.vue +++ b/src/components/TopBar.vue @@ -1,5 +1,5 @@