feat: old page ui style optiminize

This commit is contained in:
Dean-YZG 2024-05-07 11:22:17 +08:00
parent fa2f8c66d1
commit 4e4431339f
6 changed files with 13 additions and 8 deletions

View File

@ -2,6 +2,9 @@
&-body { &-body {
margin-top: 20px; margin-top: 20px;
} }
div:not(.no-dark) > svg {
filter: invert(0.5);
}
} }
.export-content { .export-content {

View File

@ -4,6 +4,10 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
div:not(.no-dark) > svg {
filter: invert(0.5);
}
.mask-page-body { .mask-page-body {
padding: 20px; padding: 20px;
overflow-y: auto; overflow-y: auto;

View File

@ -465,8 +465,6 @@ export function MaskPage(props: { className?: string }) {
}); });
}; };
const isMobileScreen = useMobileScreen();
return ( return (
<> <>
<div <div

View File

@ -8,6 +8,10 @@
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
div:not(.no-dark) > svg {
filter: invert(0.5);
}
.mask-header { .mask-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View File

@ -117,7 +117,7 @@ export default function Home() {
<NewChat <NewChat
className={` className={`
md:w-[100%] px-1 md:w-[100%] px-1
${config.theme === "dark" ? "" : "bg-gray-50"} ${config.theme === "dark" ? "bg-[var(--white)]" : "bg-gray-50"}
${config.isMobileScreen ? "pb-chat-panel-mobile" : ""} ${config.isMobileScreen ? "pb-chat-panel-mobile" : ""}
`} `}
/> />
@ -129,7 +129,7 @@ export default function Home() {
<MaskPage <MaskPage
className={` className={`
md:w-[100%] md:w-[100%]
${config.theme === "dark" ? "" : "bg-gray-50"} ${config.theme === "dark" ? "bg-[var(--white)]" : "bg-gray-50"}
${config.isMobileScreen ? "pb-chat-panel-mobile" : ""} ${config.isMobileScreen ? "pb-chat-panel-mobile" : ""}
`} `}
/> />

View File

@ -38,10 +38,6 @@
--border-in-light: 1px solid rgba(255, 255, 255, 0.192); --border-in-light: 1px solid rgba(255, 255, 255, 0.192);
--theme-color: var(--gray); --theme-color: var(--gray);
div:not(.no-dark) > svg {
filter: invert(0.5);
}
} }
.light { .light {