Skip to content

Commit 6908406

Browse files
committed
actions refiend
1 parent d46fbfa commit 6908406

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.storybook/stories/Misc/actions.story.js

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ storiesOf('Misc/Actions', module)
2020
const data = { nodes };
2121

2222
const theme = useTheme({
23+
Row: `
24+
&:hover {
25+
.td:nth-of-type(5) button {
26+
opacity: 1;
27+
}
28+
}
29+
`,
2330
BaseCell: `
2431
&:nth-of-type(1), &:nth-of-type(3), &:nth-of-type(4), &:nth-of-type(5) {
2532
min-width: 10%;
@@ -35,6 +42,12 @@ storiesOf('Misc/Actions', module)
3542
}
3643
}
3744
45+
&:nth-of-type(5) {
46+
button {
47+
opacity: 0;
48+
}
49+
}
50+
3851
&:nth-of-type(6) {
3952
flex: 1;
4053
}
@@ -82,15 +95,13 @@ storiesOf('Misc/Actions', module)
8295
<div
8396
style={{
8497
display: 'flex',
85-
justifyContent: 'space-between',
8698
alignItems: 'center',
8799
}}
88100
>
89-
<span>{item.type}</span>
101+
<span style={{ marginRight: '4px' }}>{item.type}</span>
90102
<button>B</button>
91103
</div>
92104
</Cell>
93-
<Cell>{item.isComplete.toString()}</Cell>
94105
<Cell>
95106
<div
96107
style={{
@@ -99,10 +110,22 @@ storiesOf('Misc/Actions', module)
99110
alignItems: 'center',
100111
}}
101112
>
102-
<span>{item.nodes?.length}</span>
113+
<span>{item.isComplete.toString()}</span>
103114
<button>C</button>
104115
</div>
105116
</Cell>
117+
<Cell>
118+
<div
119+
style={{
120+
display: 'flex',
121+
justifyContent: 'space-between',
122+
alignItems: 'center',
123+
}}
124+
>
125+
<span>{item.nodes?.length}</span>
126+
<button>D</button>
127+
</div>
128+
</Cell>
106129
</Row>
107130
))}
108131
</Body>

0 commit comments

Comments
 (0)