Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

[FRNT-515] Fix table cell vertical position #139

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

tatinacher
Copy link
Member

Fix table cell position to be centered vertical

  • FRNT-515

@github-actions github-actions bot added the @atoms Changes inside atoms label Jun 15, 2021
@@ -38,6 +40,8 @@ export const Th = styled.th`
`;

export const Td = styled.td`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Снимок экрана 2021-06-16 в 13 04 40

если текста будет много, а это кейс будет скорее частый - комментарий, указание причины инцидента, то выглядеть будет так

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А в чем вопрос?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Снимок экрана 2021-06-16 в 15 46 15 сорян, не тот скрин прицепила, даже при таком небольшом разрыве в величине выглядит уже не очень

Copy link
Member Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

мб сразу box добавить?

Copy link
Contributor

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' ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Думаю это надо в отдельную задачу на доработку таблицы, в этой была задача только отцентрировать по вертикали ячейки

sergeysova
sergeysova previously approved these changes Jun 17, 2021
@tatinacher tatinacher force-pushed the feat/FRNT-515-fix-table-cell-vertical-position branch from 07fef5d to 60dd90d Compare June 21, 2021 11:44
@sergeysova sergeysova merged commit 23445f0 into master Jun 22, 2021
@sergeysova sergeysova deleted the feat/FRNT-515-fix-table-cell-vertical-position branch June 22, 2021 08:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@atoms Changes inside atoms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants