diff --git a/src/components/custom-navbar/index.vue b/src/components/custom-navbar/index.vue index 8acfa85..02e17e5 100644 --- a/src/components/custom-navbar/index.vue +++ b/src/components/custom-navbar/index.vue @@ -9,7 +9,7 @@ backgroundColor: bgColor, }" > - + @@ -82,6 +82,11 @@ const statusBarHeight = computed(() => navbar.statusBarHeight.value); const navBarHeight = computed(() => navbar.navBarHeight); const totalHeight = computed(() => navbar.totalHeight.value); +const contentHeight = computed(() => { + const height = totalHeight.value - statusBarHeight.value; + return height > 0 ? height : navBarHeight.value; +}); + const menuButtonWidth = computed(() => navbar.menuButtonWidth.value); const menuButtonRightGap = computed(() => navbar.menuButtonRightGap.value); const menuButtonLeft = computed(() => navbar.menuButtonLeft.value); diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 1efa28a..ac7f0d1 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,6 +1,6 @@