fix: prevent duplicate admin scrollbars

This commit is contained in:
Lan
2026-06-03 10:43:34 +08:00
parent 45d77d0162
commit 0740df4a2d
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
<template> <template>
<div <div
class="h-screen flex flex-col lg:flex-row transition-colors duration-300" class="flex h-screen overflow-hidden flex-col transition-colors duration-300 lg:flex-row"
:class="[isDarkMode ? 'bg-gray-900' : 'bg-gray-50']" :class="[isDarkMode ? 'bg-gray-900' : 'bg-gray-50']"
> >
<!-- Sidebar --> <!-- Sidebar -->
@@ -82,7 +82,7 @@
</aside> </aside>
<!-- Main Content --> <!-- Main Content -->
<div class="flex-1 flex flex-col h-full"> <div class="flex h-full min-h-0 flex-1 flex-col">
<!-- Header --> <!-- Header -->
<header <header
class="shadow-md border-b transition-colors duration-300 h-16" class="shadow-md border-b transition-colors duration-300 h-16"
@@ -97,7 +97,7 @@
<!-- Content --> <!-- Content -->
<main <main
class="overflow-y-auto transition-colors duration-300 custom-scrollbar" class="min-h-0 flex-1 overflow-y-auto transition-colors duration-300 custom-scrollbar"
:class="[isDarkMode ? 'bg-gray-900' : 'bg-gray-50']" :class="[isDarkMode ? 'bg-gray-900' : 'bg-gray-50']"
> >
<router-view /> <router-view />
+1 -1
View File
@@ -1,5 +1,5 @@
<template> <template>
<div class="p-6 overflow-y-auto custom-scrollbar"> <div class="p-6">
<div class="mb-6 flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between"> <div class="mb-6 flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between">
<div> <div>
<p class="text-sm" :class="[mutedTextClass]">FileCodeBox Admin</p> <p class="text-sm" :class="[mutedTextClass]">FileCodeBox Admin</p>
+1 -1
View File
@@ -1,5 +1,5 @@
<template> <template>
<div class="p-6 overflow-y-auto custom-scrollbar"> <div class="p-6">
<div class="mb-6 flex flex-col gap-3 lg:flex-row lg:items-end lg:justify-between"> <div class="mb-6 flex flex-col gap-3 lg:flex-row lg:items-end lg:justify-between">
<div> <div>
<h2 class="text-2xl font-bold" :class="[primaryTextClass]"> <h2 class="text-2xl font-bold" :class="[primaryTextClass]">
+1 -1
View File
@@ -29,7 +29,7 @@ onMounted(() => {
</script> </script>
<template> <template>
<div class="p-6 h-screen overflow-y-auto custom-scrollbar"> <div class="p-6">
<div <div
class="sticky top-0 z-20 -mx-6 -mt-6 mb-6 border-b px-6 py-4 backdrop-blur" class="sticky top-0 z-20 -mx-6 -mt-6 mb-6 border-b px-6 py-4 backdrop-blur"
:class="[isDarkMode ? 'border-gray-700 bg-gray-900/85' : 'border-gray-200 bg-gray-50/90']" :class="[isDarkMode ? 'border-gray-700 bg-gray-900/85' : 'border-gray-200 bg-gray-50/90']"