From f442b82354a891710c680596851e603687db17e2 Mon Sep 17 00:00:00 2001 From: al Date: Wed, 7 Aug 2024 18:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/globals.css | 12 ++- app/layout.js | 16 +-- components/ImagesMask/index.jsx | 182 ++++++++++++++++++-------------- components/Photos/index.js | 169 +++++++++++++++-------------- 4 files changed, 207 insertions(+), 172 deletions(-) diff --git a/app/globals.css b/app/globals.css index 6e694a3..fbe3fb7 100644 --- a/app/globals.css +++ b/app/globals.css @@ -101,20 +101,26 @@ footer{ overflow-y: auto; scroll-behavior: smooth; } +.scrollbarBoxX { + /* IE 10+ */ + overflow-y: hidden; + overflow-x: auto; + scroll-behavior: smooth; +} -.scrollbarBox::-webkit-scrollbar { +.scrollbarBoxX::-webkit-scrollbar, .scrollbarBox::-webkit-scrollbar { /* display:none; */ width: 6px; } -.scrollbarBox::-webkit-scrollbar-thumb { +.scrollbarBoxX::-webkit-scrollbar-thumb,.scrollbarBox::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 5px rgba(138, 138, 138, 0.2); background: nb-theme(background-basic-color-4); } -.scrollbarBox::-webkit-scrollbar-track { +.scrollbarBoxX::-webkit-scrollbar-track,.scrollbarBox::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 5px rgba(138, 138, 138, 0.2); border-radius: 10px; background: nb-theme(background-basic-color-2); diff --git a/app/layout.js b/app/layout.js index 30ee1b0..a3be66c 100644 --- a/app/layout.js +++ b/app/layout.js @@ -72,10 +72,7 @@ export default function RootLayout({ children }) { {/* */} {/* */} - + {/* */} {/* */} {/* */} @@ -191,9 +188,16 @@ export default function RootLayout({ children }) {
- {withAuth({children})} +
+ {withAuth( + +
+ {children} + {/* */} +
+
+ )} {/* {children} */} -