Skip to content

Commit

Permalink
fix: change text alignment in data set display options from left and …
Browse files Browse the repository at this point in the history
…right to line start and line end
  • Loading branch information
flaminic committed Oct 17, 2024
1 parent e8e7df7 commit 5d1f679
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions src/data-workspace/section-form/section-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ export const SectionForm = ({ dataSet, globalFilterText }) => {
return (
<>
<div
className={cx(styles.sectionsCustomerText, {
[styles.textLeft]:
displayOptions.customText?.align === 'left',
className={cx(styles.sectionsCustomText, {
[styles.textStartLine]:
displayOptions.customText?.align === 'line-start',
[styles.textCenter]:
displayOptions.customText?.align === 'center',
[styles.textRight]:
displayOptions.customText?.align === 'right',
[styles.textEndLine]:
!displayOptions.customText ||
displayOptions.customText?.align === 'line-end',
})}
>
{displayOptions.customText?.header && (
Expand Down
10 changes: 5 additions & 5 deletions src/data-workspace/section-form/section.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,21 @@
margin: 2px;
font-size: 1.5em;
}
.sectionsCustomerText{
.sectionsCustomText{
width: 100%;
padding: 16px;
}
.sectionTab {
margin-bottom: 8px;
}
.textLeft{
text-align: left;
.textStartLine{
text-align: start;
}
.textCenter{
text-align: center;
}
.textRight{
text-align: right;
.textEndLine{
text-align: end;
}

.verticalSectionTabWrapper .sectionTab div {
Expand Down

0 comments on commit 5d1f679

Please sign in to comment.