-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(components): update antd #267
Changes from 3 commits
a03d432
56130a2
0840ef9
d0bde47
c273077
aad8a27
33ea9af
3ad26c8
26770c3
5de3fa4
8adf8c7
2093bec
bc52ebc
226970e
3721b6c
cae027e
f64eccd
b865b6d
d32376d
cd20878
0bf2745
25ac4e6
bedc419
c5ad6bf
f9317ac
8b2fc7e
2720207
418cd6b
79e557b
14d6e50
168d295
8a2363a
9a39b65
c3bec66
b8caea3
3e77268
6463421
6768160
fbf5482
98f9189
e946493
c07fd95
60dfc82
1270d30
0aff01c
f4fc7ce
6df4dc5
651dc90
57f8a85
0dfdb0d
a53d9df
ac7cef3
81e99cb
356042c
037984a
7cc2f7b
832a74d
5edec65
b497034
74a040a
8122257
96e4be1
fa79b23
b873195
749e0eb
a7767c9
5084bca
2b4ae0e
f11ede4
425d40d
ff05388
cef6587
0fe4a1a
e5226f8
ae95c71
27911ce
b4db7e6
67b1d07
def2132
f21dda7
2e3c904
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import styled from 'styled-components'; | ||
import { Breadcrumb as AntBreadcrumb } from 'antd'; | ||
|
||
export const BaseBreadcrumb = styled(AntBreadcrumb)` | ||
&.ant-breadcrumb { | ||
li:last-child { | ||
.ant-breadcrumb-link { | ||
color: var(--text-main-color); | ||
} | ||
} | ||
} | ||
`; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { Breadcrumb as BaseBreadcrumb } from 'antd'; | ||
export { BaseBreadcrumb } from './BaseBreadcrumb.styles'; | ||
export type { BreadcrumbProps as BaseBreadcrumbProps } from 'antd'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { Calendar as BaseCalendar } from 'antd'; | ||
export type { CalendarProps as BaseCalendarProps } from 'antd'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,10 @@ export const Card = styled(AntCard)<CardInternalProps>` | |
box-shadow: var(--box-shadow); | ||
|
||
.ant-card-head { | ||
padding-top: 15px; | ||
padding-bottom: 15px; | ||
min-height: 36px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why? |
||
|
||
border-bottom: 0; | ||
|
||
font-weight: ${FONT_WEIGHT.bold}; | ||
|
@@ -27,6 +31,12 @@ export const Card = styled(AntCard)<CardInternalProps>` | |
padding-bottom: 0; | ||
} | ||
|
||
@media only screen and ${media.md} { | ||
padding-top: 20px; | ||
padding-bottom: 0; | ||
min-height: 48px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why? |
||
} | ||
|
||
@media only screen and ${media.xl} { | ||
font-size: ${FONT_SIZE.xxl}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. from SC |
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ export const BaseFeed: React.FC<BaseFeedProps> = ({ next, hasMore, target = 'mai | |
</S.SpinnerWrapper> | ||
} | ||
scrollableTarget={target} | ||
style={{ overflow: 'visible' }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
> | ||
<S.NewsWrapper>{children}</S.NewsWrapper> | ||
</InfiniteScroll> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from styled-components theme