Skip to content

Commit

Permalink
[patch][v16.21.12] Table Alignment Fixes (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
ponnexcodev authored Oct 18, 2024
1 parent 310e512 commit fbe6b4a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toniq-labs/design-system-root",
"version": "16.21.11",
"version": "16.21.12",
"private": true,
"description": "Root design system mono-repo package.",
"homepage": "https://github.com/Toniq-Labs/toniq-labs-design-system",
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toniq-labs/design-system",
"version": "16.21.11",
"version": "16.21.12",
"private": false,
"description": "Design system elements for Toniq Labs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ export const ToniqListTable = defineToniqElement<ListTableInputs>()({
left: ${unsafeCSS(`${state.rowStyles[itemKey]?.left}px`)};
`;
const rowItemWidthStyle = css`
width: ${index >= enabledColumns.length - 1
const rowItemMinWidthStyle = css`
min-width: ${index >= enabledColumns.length - 1
? unsafeCSS('unset')
: unsafeCSS(`${state.rowStyles[itemKey]?.width}px`)};
`;
Expand All @@ -472,9 +472,9 @@ export const ToniqListTable = defineToniqElement<ListTableInputs>()({
})}
style=${ifDefined(
rowItemLeftStyle ||
rowItemWidthStyle ||
rowItemMinWidthStyle ||
rowItemMaxWidthStyle
? `${rowItemLeftStyle ? rowItemLeftStyle : ''} ${rowItemWidthStyle ? rowItemWidthStyle : ''} ${rowItemMaxWidthStyle ? rowItemMaxWidthStyle : ''}`
? `${rowItemLeftStyle ? rowItemLeftStyle : ''} ${rowItemMinWidthStyle ? rowItemMinWidthStyle : ''} ${rowItemMaxWidthStyle ? rowItemMaxWidthStyle : ''}`
: undefined,
)}
>
Expand Down Expand Up @@ -616,7 +616,7 @@ function getElementWidthWithMarginPadding(element: HTMLElement) {
const gap = parseFloat(style.gap) || 0;

return {
width: width + marginLeft + marginRight + gap,
width: width + marginLeft + marginRight + paddingLeft + paddingRight + gap,
margin: {
left: marginLeft,
right: marginRight,
Expand Down
2 changes: 1 addition & 1 deletion packages/native-elements-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toniq-labs/design-system-native-elements-test",
"version": "16.21.11",
"version": "16.21.12",
"private": true,
"scripts": {
"compile": "virmator compile",
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toniq-labs/design-system-scripts",
"version": "16.21.11",
"version": "16.21.12",
"private": true,
"scripts": {
"compile": "virmator compile",
Expand Down

0 comments on commit fbe6b4a

Please sign in to comment.