File tree Expand file tree Collapse file tree 3 files changed +31
-16
lines changed Expand file tree Collapse file tree 3 files changed +31
-16
lines changed Original file line number Diff line number Diff line change @@ -197,8 +197,12 @@ function App() {
197197 style = { {
198198 width : '100vw' ,
199199 height : '100vh' ,
200+ padding : 10 ,
200201 } }
201202 >
203+ < div style = { { marginBottom : 40 , marginTop : 40 } } >
204+ < h1 > Editable React Table - Demo</ h1 >
205+ </ div >
202206 < Table
203207 columns = { state . columns }
204208 data = { state . data }
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ export default function Table({
118118 </ div >
119119 < div { ...getTableBodyProps ( ) } >
120120 < FixedSizeList
121- height = { window . innerHeight - 100 }
121+ height = { 480 }
122122 itemCount = { rows . length }
123123 itemSize = { 40 }
124124 width = { totalColumnsWidth + scrollbarWidth }
Original file line number Diff line number Diff line change 4242 position : relative;
4343 height : 1.5em ;
4444 width : 1.5em ;
45+ top : 0.125rem ;
4546}
4647
4748.svg-text svg {
@@ -99,8 +100,9 @@ html {
99100
100101.svg-icon-sm svg {
101102 position : relative;
102- height : 1.25em ;
103- width : 1.25em ;
103+ height : 1rem ;
104+ width : 1rem ;
105+ top : 0.125rem ;
104106}
105107
106108.svg-gray svg {
@@ -154,10 +156,6 @@ html {
154156 background-color : # eeeeee ;
155157}
156158
157- .tr : last-child .td {
158- border-bottom : 0 ;
159- }
160-
161159.add-row {
162160 color : # 9e9e9e ;
163161 padding : 0.5rem ;
@@ -166,6 +164,7 @@ html {
166164 font-size : 0.875rem ;
167165 cursor : pointer;
168166 height : 50px ;
167+ border : 1px solid # e0e0e0 ;
169168}
170169
171170.add-row : hover {
@@ -210,14 +209,6 @@ html {
210209 border-spacing : 0 ;
211210}
212211
213- .th : last-child {
214- border-right : 0 ;
215- }
216-
217- .td : last-child {
218- border-right : 0 ;
219- }
220-
221212.resizer {
222213 display : inline-block;
223214 background : transparent;
@@ -240,9 +231,29 @@ html {
240231.td {
241232 white-space : nowrap;
242233 margin : 0 ;
234+ border-left : 1px solid # e0e0e0 ;
235+ border-top : 1px solid # e0e0e0 ;
236+ position : relative;
237+ }
238+
239+ .th {
243240 border-bottom : 1px solid # e0e0e0 ;
241+ }
242+
243+ .tr : last-child .td {
244+ border-bottom : 0 ;
245+ }
246+
247+ .td : last-child {
244248 border-right : 1px solid # e0e0e0 ;
245- position : relative;
249+ }
250+
251+ .th : last-child {
252+ border-right : 1px solid # e0e0e0 ;
253+ }
254+
255+ .tr : first-child .td {
256+ border-top : 0 ;
246257}
247258
248259.text-align-right {
You can’t perform that action at this time.
0 commit comments