From 6e11e19f0ae6c8f47b32446e3ed492a32e0cb4ea Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Wed, 4 Sep 2024 22:48:18 +0300 Subject: [PATCH 1/2] Style fixes --- src/components/Views/StaticPage.tsx | 2 +- src/components/_shared/PageLayout.tsx | 2 +- .../_shared/TableOfContents/TableOfContents.tsx | 2 +- src/styles/app.scss | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Views/StaticPage.tsx b/src/components/Views/StaticPage.tsx index d6eebfb9..6138cd40 100644 --- a/src/components/Views/StaticPage.tsx +++ b/src/components/Views/StaticPage.tsx @@ -18,7 +18,7 @@ export const StaticPage = (props: Props) => {
(bodyEl = el)}>
-
+

{props.title}

{props.children}
diff --git a/src/components/_shared/PageLayout.tsx b/src/components/_shared/PageLayout.tsx index b27ae4d4..0edbb015 100644 --- a/src/components/_shared/PageLayout.tsx +++ b/src/components/_shared/PageLayout.tsx @@ -82,7 +82,7 @@ export const PageLayout = (props: PageLayoutProps) => { })} classList={{ 'main-content--no-padding': !isHeaderFixed }} > -
{props.children}
+ {props.children} diff --git a/src/components/_shared/TableOfContents/TableOfContents.tsx b/src/components/_shared/TableOfContents/TableOfContents.tsx index 2f27b935..4320c30c 100644 --- a/src/components/_shared/TableOfContents/TableOfContents.tsx +++ b/src/components/_shared/TableOfContents/TableOfContents.tsx @@ -85,7 +85,7 @@ export const TableOfContents = (props: Props) => { [styles.TableOfContentsFixedWrapperLefted]: props.variant === 'editor' })} > -
+
diff --git a/src/styles/app.scss b/src/styles/app.scss index b5d694b2..694c9be6 100644 --- a/src/styles/app.scss +++ b/src/styles/app.scss @@ -848,7 +848,7 @@ figure { .main-content { @include media-breakpoint-up(lg) { - // padding-top: 130px; + padding-top: 130px; } flex: 1 100%; @@ -1031,25 +1031,25 @@ details { Not supports in Firefox and IE */ /* total width */ - ::-webkit-scrollbar { + &::-webkit-scrollbar { background-color: #fff; width: 16px; } /* background of the scrollbar except button or resizer */ - ::-webkit-scrollbar-track { + &::-webkit-scrollbar-track { background-color: #fff; } /* scrollbar itself */ - ::-webkit-scrollbar-thumb { + &::-webkit-scrollbar-thumb { background-color: #babac0; border-radius: 16px; border: 4px solid #fff; } /* set button(top and bottom of the scrollbar) */ - ::-webkit-scrollbar-button { + &::-webkit-scrollbar-button { display: none; } } From 479a4ea8520f2c48ed45882c9833b8ec9290ad51 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Tue, 10 Sep 2024 22:49:09 +0300 Subject: [PATCH 2/2] Fixed paddings on the feed page --- src/components/Views/Feed/Feed.module.scss | 4 ++++ src/components/Views/Feed/Feed.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Views/Feed/Feed.module.scss b/src/components/Views/Feed/Feed.module.scss index d887266a..6da5b4ac 100644 --- a/src/components/Views/Feed/Feed.module.scss +++ b/src/components/Views/Feed/Feed.module.scss @@ -1,3 +1,7 @@ +.feed { + padding-top: 7.2rem; +} + .feedFilter { @include media-breakpoint-down(md) { margin-right: 1rem !important; diff --git a/src/components/Views/Feed/Feed.tsx b/src/components/Views/Feed/Feed.tsx index 42d30bc6..28de070a 100644 --- a/src/components/Views/Feed/Feed.tsx +++ b/src/components/Views/Feed/Feed.tsx @@ -107,7 +107,7 @@ export const FeedView = (props: FeedProps) => { const currentPeriod = createMemo(() => asOption(searchParams?.period || '')) return ( -
+