Skip to content

Commit

Permalink
perf(components): make a better style
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Oct 29, 2024
1 parent d4b3f3a commit 5fcf517
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/universal/FloatBtn/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem;
font-size: 1.1rem;
cursor: pointer;
border: 1px solid var(--text-color);
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
transition: background-color 0.2s ease;
}

Expand Down
3 changes: 2 additions & 1 deletion src/components/widgets/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export const Sidebar: React.FC = () => {
<div className={styles.headerInner}>
<div className={styles.logo}>Mog</div>
<div className={styles.search} onClick={() => setFloat(!float)}>
{!isMobile && (float ? <MenuFoldOne /> : <MenuUnfoldOne />)}
{/* {!isMobile && } */}
{float ? <MenuFoldOne /> : <MenuUnfoldOne />}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Categories/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

.add {
background-color: var(--background-color);
background-color: var(--background-color-primary);
}

.count {
Expand Down Expand Up @@ -43,7 +43,7 @@


.add:hover {
background-color: var(--background-color-primary);
background-color: var(--background-color-secondary);
}

.group {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Write/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
padding-right: 10px;
transition: border-bottom 0.2s ease-in-out;
resize: none;
background-color: var(--background-color);
background-color: var(--background-color-primary);
font-size: 14px;
}

Expand Down

0 comments on commit 5fcf517

Please sign in to comment.