Skip to content

Commit e513121

Browse files
authored
feat(ChangelogDialog): add --gc-changelog-dialog-width & --gc-changelog-dialog-meta-width css tokens (#352)
1 parent 07f638f commit e513121

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/ChangelogDialog/ChangelogDialog.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
@use '../variables';
22

33
$block: '.#{variables.$ns}changelog-dialog';
4-
$width: 732px;
54
$maxItemsHeight: 70vh;
65

76
#{$block} {
8-
width: $width;
7+
--gc-changelog-dialog-width: 732px;
8+
--gc-changelog-dialog-meta-width: 80px;
9+
10+
width: var(--gc-changelog-dialog-width);
911

1012
&__full-list-link-icon {
1113
margin-inline-start: var(--g-spacing-1);

src/components/ChangelogDialog/components/Item/Item.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
@use '../../../variables';
33

44
$block: '.#{variables.$ns}changelog-dialog-item';
5-
$metaWidth: 80px;
65

76
#{$block} {
87
display: flex;
98

109
&__meta {
11-
width: $metaWidth;
10+
width: var(--gc-changelog-dialog-meta-width);
1211
}
1312

1413
&__date {

0 commit comments

Comments
 (0)