Skip to content

Let's use AI to Earn!

fix: web端全局样式修改

gaoSir754019302b24
diff --git a/src/app/[lng]/accounts/accounts.module.scss b/src/app/[lng]/accounts/accounts.module.scss
index 85155113..7250f8e1 100644
--- a/src/app/[lng]/accounts/accounts.module.scss
+++ b/src/app/[lng]/accounts/accounts.module.scss
@@ -1,4 +1,6 @@
.accounts {
- @include height_100vh;
display: flex;
+ height: 100%;
+ min-height: 0;
+ overflow: auto;
}
\ No newline at end of file
diff --git a/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx b/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx
index 887776b8..ec192484 100644
--- a/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx
+++ b/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx
@@ -40,7 +40,6 @@ export interface IAccountSidebarProps {
const AccountStatusView = ({ account }: { account: SocialAccount }) => {
const { t } = useTransClient("account");
-
if (account.status === AccountStatus.USABLE) {
return (
<>
diff --git a/src/app/[lng]/hot-content/page.css b/src/app/[lng]/hot-content/page.css
index 12784de7..a5b9d3e6 100644
--- a/src/app/[lng]/hot-content/page.css
+++ b/src/app/[lng]/hot-content/page.css
@@ -1,5 +1,7 @@
.hot-content-layout {
background: #f0f2f5;
+ height: 100%;
+ min-height: 0;
}
.main-content {
diff --git a/src/app/[lng]/layout.tsx b/src/app/[lng]/layout.tsx
index 668c6763..c5af73f7 100644
--- a/src/app/[lng]/layout.tsx
+++ b/src/app/[lng]/layout.tsx
@@ -33,8 +33,17 @@ export default async function RootLayout({
<html lang={lng} dir={dir(lng)}>
<body>
<Providers lng={lng}>
- <ConditionalHeader />
- {children}
+ <div
+ style={{
+ height: "100vh",
+ display: "flex",
+ flexDirection: "column",
+ minHeight: '0'
+ }}
+ >
+ <ConditionalHeader />
+ {children}
+ </div>
</Providers>
</body>
</html>
diff --git a/src/app/layout/LyaoutHeader.tsx b/src/app/layout/LyaoutHeader.tsx
index d6c2b977..26df0231 100644
--- a/src/app/layout/LyaoutHeader.tsx
+++ b/src/app/layout/LyaoutHeader.tsx
@@ -131,20 +131,6 @@ const LyaoutHeader = memo(
);
};
- useEffect(() => {
- setTimeout(() => {
- let layoutHeaderHegiht = "0px";
- layoutHeaderHegiht = layoutHeader.current!.offsetHeight + "px";
-
- document.body.style.paddingTop = layoutHeaderHegiht;
-
- document.documentElement.style.setProperty(
- `--layoutHeaderHegiht`,
- layoutHeaderHegiht,
- );
- }, 2);
- }, []);
-
return (
<>
<div ref={layoutHeader} className={styles.layoutHeader}>
diff --git a/src/app/layout/styles/lyaoutHeader.module.scss b/src/app/layout/styles/lyaoutHeader.module.scss
index 34ae7c51..8e7806d1 100644
--- a/src/app/layout/styles/lyaoutHeader.module.scss
+++ b/src/app/layout/styles/lyaoutHeader.module.scss
@@ -2,8 +2,6 @@
width: 100%;
padding: 6px 0;
background: var(--whiteColor);
- position: fixed;
- top: 0;
z-index: 1000;
.layoutHeaderBell {
diff --git a/src/app/styles/mixin.scss b/src/app/styles/mixin.scss
index 9ce4582f..7d613f41 100644
--- a/src/app/styles/mixin.scss
+++ b/src/app/styles/mixin.scss
@@ -27,10 +27,6 @@
}
}
-@mixin height_100vh() {
- height: calc(100vh - var(--layoutHeaderHegiht));
-}
-
// antd table 布局 100%
@mixin table-flex-container-with-selectors() {
.ant-table-wrapper,