File tree Expand file tree Collapse file tree 4 files changed +28
-5
lines changed
page/archiving/component/TimeBlock Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ export const blockStyle = {
8
8
padding : '0.5rem' ,
9
9
justifyContent : 'center' ,
10
10
alignItems : 'center' ,
11
- gap : '0.5rem' ,
12
11
13
12
borderRadius : '10rem' ,
14
13
@@ -19,3 +18,11 @@ export const blockStyle = {
19
18
textOverflow : 'ellipsis' ,
20
19
whiteSpace : 'nowrap' ,
21
20
} ;
21
+
22
+ export const spanStyle = {
23
+ padding : '2rem 0.8rem' ,
24
+
25
+ overflow : 'hidden' ,
26
+ textOverflow : 'ellipsis' ,
27
+ whiteSpace : 'nowrap' ,
28
+ } ;
Original file line number Diff line number Diff line change 1
- import { blockStyle } from '@/page/archiving/component/TimeBlock/TimeBlock.style' ;
1
+ import { blockStyle , spanStyle } from '@/page/archiving/component/TimeBlock/TimeBlock.style' ;
2
2
3
3
import { ReactNode } from 'react' ;
4
4
5
+ import Eclipse from '@/common/asset/svg/eclipse.svg?react' ;
6
+
5
7
interface TimeBlockProps {
6
8
children : ReactNode ;
7
9
}
8
10
9
11
const TimeBlock = ( { children } : TimeBlockProps ) => {
10
12
return (
11
13
< >
12
- < div css = { blockStyle } > { children } </ div >
14
+ < div css = { blockStyle } >
15
+ < Eclipse width = { 47 } height = { 47 } css = { { flexShrink : 0 } } />
16
+ < span css = { spanStyle } > { children } </ span >
17
+ </ div >
13
18
</ >
14
19
) ;
15
20
} ;
Original file line number Diff line number Diff line change 1
1
import TimeBlock from '@/page/archiving/component/TimeBlock/TimeBlock' ;
2
- import { Meta , StoryObj } from '@storybook/react/* ' ;
2
+ import { Meta , StoryObj } from '@storybook/react' ;
3
3
4
4
const meta = {
5
5
title : 'Page/Archiving/TimeBlock' ,
@@ -8,7 +8,7 @@ const meta = {
8
8
layout : 'centered' ,
9
9
} ,
10
10
args : {
11
- children : 'TimeBlock' ,
11
+ children : [ '타임 블록fjlaeijfla' ] ,
12
12
} ,
13
13
argTypes : {
14
14
children : {
You can’t perform that action at this time.
0 commit comments