Skip to content

Commit 2b68cfb

Browse files
Another set of changes
1 parent 93432ca commit 2b68cfb

15 files changed

Lines changed: 34 additions & 328 deletions

File tree

src/components/Attachment/styling/Attachment.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
.str-chat {
44
/* The margin applied to every attachment in the attachment list */
5-
--str-chat__attachment-margin: var(--str-chat__spacing-0_5);
6-
7-
/* The border radius used for the borders of the component */
8-
--str-chat__attachment-list-border-radius: 0;
5+
--str-chat__attachment-margin: var(--space-2)
6+
/* The border radius used for the borders of the component */
7+
--str-chat__attachment-list-border-radius: 0;
98

109
/* The text/icon color of the component */
1110
--str-chat__attachment-list-color: var(--str-chat__text-color);
@@ -328,7 +327,7 @@
328327

329328
.str-chat__gallery .str-chat__message-attachment--svg-image,
330329
.str-chat__message-attachment--image.str-chat__message-attachment--svg-image {
331-
$padding: var(--str-chat__spacing-6);
330+
$padding: var(--space-24);
332331
padding: $padding;
333332

334333
img {
@@ -344,8 +343,8 @@
344343
display: flex;
345344
align-items: center;
346345
justify-content: center;
347-
padding: var(--str-chat__spacing-2);
348-
column-gap: var(--str-chat__spacing-4);
346+
padding: var(--space-8);
347+
column-gap: var(--space-16);
349348
//margin: var(--str-chat__attachment-margin);
350349

351350
.str-chat__file-icon {
@@ -380,7 +379,7 @@
380379
flex-direction: column;
381380
align-items: flex-start;
382381
justify-content: center;
383-
row-gap: var(--str-chat__spacing-0_5);
382+
row-gap: var(--space-2);
384383
min-width: 0;
385384
line-height: var(--typography-line-height-tight);
386385

@@ -390,7 +389,7 @@
390389
display: flex;
391390
align-items: center;
392391
justify-content: space-between;
393-
column-gap: var(--str-chat__spacing-2);
392+
column-gap: var(--space-8);
394393
font-weight: var(--typography-font-weight-semi-bold);
395394
font-size: var(--typography-font-size-sm);
396395

src/components/Attachment/styling/Geolocation.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393

9494
.str-chat__message-attachment-geolocation__status--active-until {
9595
text-transform: lowercase;
96-
font: var(--str-chat__caption-text);
96+
font: var(--str-chat__metadata-emphasis-text);
9797
}
9898
}
9999
}

src/components/Attachment/styling/ModalGallery.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
grid-template-rows: 50% 50%;
2424
overflow: hidden;
2525
border-radius: var(--radius-lg);
26-
gap: var(--str-chat__spacing-0_5);
26+
gap: var(--space-2);
2727
width: $max-width;
2828
max-width: $max-width;
2929
// CDN resize requires height/max-height to be present on the img element, this rule ensures that

src/components/ChannelList/styling/ChannelList.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
.str-chat__channel-list-inner {
127127
height: 100%;
128128
overflow: hidden;
129-
padding-bottom: var(--str-chat__spacing-2_5);
129+
padding-bottom: calc(var(--space-8) + var(--space-2));
130130

131131
.str-chat__channel-list-inner__main {
132132
height: 100%;
@@ -138,7 +138,7 @@
138138
flex-direction: column;
139139
align-items: center;
140140
justify-content: center;
141-
padding: var(--str-chat__spacing-3);
141+
padding: calc(var(--space-8) + var(--space-4));
142142

143143
p {
144144
color: var(--text-secondary);
@@ -151,7 +151,7 @@
151151
.str-chat__load-more-button {
152152
display: flex;
153153
justify-content: center;
154-
margin: var(--str-chat__spacing-2) 0;
154+
margin: var(--space-8) 0;
155155

156156
.str-chat__load-more-button__button {
157157
@include utils.flex-row-center;

src/components/Dialog/styling/Alert.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}
3434

3535
.str-chat__alert-header__description {
36-
font: var(--str-chat__caption-default-tex);
36+
font: var(--str-chat__caption-default-text);
3737
}
3838
}
3939
}

src/components/Dialog/styling/Prompt.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626

2727
.str-chat__prompt__header__description {
28-
font: var(--str-chat__body-text);
28+
font: var(--str-chat__caption-default-text);
2929
color: var(--text-secondary);
3030
}
3131

src/components/Dialog/styling/Viewer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131

3232
.str-chat__viewer__header__description {
33-
font: var(--str-chat__body-text);
33+
font: var(--str-chat__caption-default-text);
3434
color: var(--text-secondary);
3535
}
3636

0 commit comments

Comments
 (0)