From 144a792cb222f58725442faa983430982637e600 Mon Sep 17 00:00:00 2001 From: Dream Hunter Date: Thu, 27 Feb 2025 00:14:04 +0800 Subject: [PATCH] feat: |UI| change SideMargin size base on gridMaxCols (#596) --- frontend/src/App.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index fb4d5daa..35c621a3 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -20,6 +20,7 @@ const localeConfig = computed(() => locale.value == 'zh' ? zhCN : null) const isMobile = useIsMobile() const showSideMargin = computed(() => !isMobile.value && useSideMargin.value); const showAd = computed(() => !isMobile.value && adClient && adSlot); +const gridMaxCols = computed(() => showAd.value ? 8 : 12); onMounted(async () => { @@ -78,21 +79,21 @@ onMounted(async () => { - +
- +
-
+
@@ -103,7 +104,7 @@ onMounted(async () => {
- +