-
Notifications
You must be signed in to change notification settings - Fork 2
[FRNT-515] Fix table cell vertical position #139
[FRNT-515] Fix table cell vertical position #139
Conversation
@@ -38,6 +40,8 @@ export const Th = styled.th` | |||
`; | |||
|
|||
export const Td = styled.td` |
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.
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.
А в чем вопрос?
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.
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.
@Irinaristova тогда мб сделать для шапки таблицы по центру, а для ячеек оставить сверху?
@@ -28,6 +28,8 @@ export const Tbody = styled.tbody` | |||
`; | |||
|
|||
export const Th = styled.th` | |||
display: flex; | |||
align-items: center; | |||
box-sizing: border-box; | |||
max-width: var(--local-cell-max-width); | |||
padding: var(--local-vertical) var(--local-horizontal); |
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.
мб сразу box добавить?
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.
мб будем приводить к единому код стайлу - 'data-variant': properties.variant ?? 'secondary' ?
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.
Думаю это надо в отдельную задачу на доработку таблицы, в этой была задача только отцентрировать по вертикали ячейки
07fef5d
to
60dd90d
Compare
Fix table cell position to be centered vertical