Skip to content

Commit 7a8e1b5

Browse files
authored
Fix: CSS, ESLint 머지 후 충돌 해결
2 parents 5cfb257 + 12796fa commit 7a8e1b5

File tree

23 files changed

+58
-73
lines changed

23 files changed

+58
-73
lines changed

src/components/Button/Button.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ interface ButtonProps {
1515
children?: React.ReactNode;
1616
disabled?: boolean;
1717
padding?: boolean;
18-
border?: string;
1918
backgroundColor?: keyof typeof color;
2019
}
2120

@@ -53,5 +52,4 @@ const Button = ({
5352
);
5453
};
5554

56-
5755
export default Button;

src/components/PostPreview/PostHeader.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Icon } from '../Icon';
33
import { Avatar } from '../Avatar';
44
import {
55
AvatarContainer,
6+
PostInfoContainer,
67
PostDetailInfoContainer,
78
UserContainer,
89
NameContainer,

src/pages/landing/Landing.style.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import logo from '../../assets/logo.svg';
33

44
export const LandingMain = styled.main`
55
background: ${({ theme }) => theme.color.linearGradientPurple};
6-
${({ theme }) => theme.style.flexAlignCenter};
6+
${({ theme }) => theme.style.flexCenter};
77
flex-direction: column;
88
width: 100%;
99
height: 100%;

src/pages/layout/components/IconNav.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { AlertButton, SearchButton } from '@pages/layout/components';
77
import useSessionStorage from '@hooks/useSessionStorage';
88
import { LoginConfirm } from '@components/Confirm';
99
import { EtcNavContainer } from './IconNav.style';
10-
import { User } from '@/types';
11-
1210

1311
interface EtcNavProps {
1412
handleOpenSearchBox: () => void;

src/pages/layout/components/PathNav.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useNavigate } from 'react-router-dom';
22
import { Button } from '@components/Button';
33
import { Icon } from '@components/Icon';
44
import { Logo, PathNavContainer } from './PathNav.style';
5+
import { Link } from '@components/Link';
56

67
interface pathNavProps {
78
pathStatus: 'back' | 'home';
@@ -26,7 +27,11 @@ const PathNav = ({ pathStatus }: pathNavProps) => {
2627
/>
2728
</Button>
2829
) : (
29-
<Logo />
30+
<Link
31+
pageLink='/posts'
32+
setActiveStyle={false}>
33+
<Logo />
34+
</Link>
3035
)}
3136
</PathNavContainer>
3237
);

src/pages/layout/components/SearchBody.style.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ export const SearchResultContainer = styled.div`
77
position: absolute;
88
top: 50px;
99
left: 0;
10+
overflow-y: scroll;
1011
z-index: 100;
1112
`;
1213

13-
export const SearchResult = styled.div`
14-
overflow: auto;
15-
`;
14+
export const SearchResult = styled.div``;
1615

1716
export const SearchItem = styled.div`
1817
${({ theme }) => theme.style.flexAlignCenter}

src/pages/meditation/components/MeditationTimeSetter.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ const MeditationTimeSetter = ({ themePicked }: MeditationTimeSetterProps) => {
4545
};
4646

4747
const handleEndMeditation = () => {
48+
const headerEl = document.querySelector('header');
49+
const footerEl = document.querySelector('footer');
50+
51+
headerEl.style.display = 'flex';
52+
footerEl.style.display = 'flex';
4853
navigate('/posting', {
4954
state: {
5055
channelId: themePicked.id,

src/pages/meditation/components/MeditationTimer.style.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const TimerElement = styled.button<{ timerPaused: boolean }>`
5656
transition: 0.3s;
5757
}
5858
59-
z-index: 2;
59+
z-index: 1;
6060
`;
6161

6262
export const IconContainer = styled.div`

src/pages/password-update/PasswordUpdate.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ const PasswordUpdate = () => {
6666

6767
return (
6868
<LandingMain>
69-
<HeadingContentContainer>
70-
<Heading />
71-
</HeadingContentContainer>
7269
{passwordChanged && (
7370
<Alert
7471
emoji={'✅'}

src/pages/postDetail/components/PostContent.style.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ export const PostContentHeader = styled.header`
2121

2222
export const PostContentMenuIconContainer = styled.div<PostContentMenuProps>`
2323
${({ theme }) => theme.style.flexCenter}
24-
user-select: none;
2524
position: relative;
2625
cursor: pointer;
27-
width: 50px;
28-
height: 100%;
26+
width: 54px;
27+
height: 50px;
2928
border-radius: 50%;
3029
border-left: none;
30+
margin: 0;
3131
z-index: 2;
3232
> span {
3333
transition: transform 0.4s ease-in-out;
@@ -42,6 +42,7 @@ export const PostContentMenuIconContainer = styled.div<PostContentMenuProps>`
4242

4343
export const PostContentMenu = styled.div<PostContentMenuProps>`
4444
z-index: 1;
45+
4546
${({ theme }) => theme.style.flexAlignCenter}
4647
flex-direction: column;
4748
justify-content: space-around;
@@ -68,7 +69,7 @@ export const PostContentMenu = styled.div<PostContentMenuProps>`
6869
}
6970
}
7071
71-
& > p:first-child {
72+
& > p:first-of-type {
7273
border-top-left-radius: 10px;
7374
border-top-right-radius: 10px;
7475
}
@@ -80,6 +81,7 @@ export const PostContentMenu = styled.div<PostContentMenuProps>`
8081
`;
8182

8283
export const PostContentBody = styled.div`
84+
margin-top: 10px;
8385
padding: 20px;
8486
width: 100%;
8587
line-height: 1.5;

0 commit comments

Comments
 (0)