Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 8 additions & 30 deletions src/components/Attachment/styling/Attachment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

.str-chat {
/* The margin applied to every attachment in the attachment list */
--str-chat__attachment-margin: var(--str-chat__spacing-0_5);

/* The border radius used for the borders of the component */
--str-chat__attachment-list-border-radius: 0;
--str-chat__attachment-margin: var(--space-2)
/* The border radius used for the borders of the component */
--str-chat__attachment-list-border-radius: 0;

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

.str-chat__gallery .str-chat__message-attachment--svg-image,
.str-chat__message-attachment--image.str-chat__message-attachment--svg-image {
$padding: var(--str-chat__spacing-6);
$padding: var(--space-24);
padding: $padding;

img {
Expand All @@ -344,8 +343,8 @@
display: flex;
align-items: center;
justify-content: center;
padding: var(--str-chat__spacing-2);
column-gap: var(--str-chat__spacing-4);
padding: var(--space-8);
column-gap: var(--space-16);
//margin: var(--str-chat__attachment-margin);

.str-chat__file-icon {
Expand Down Expand Up @@ -380,7 +379,7 @@
flex-direction: column;
align-items: flex-start;
justify-content: center;
row-gap: var(--str-chat__spacing-0_5);
row-gap: var(--space-2);
min-width: 0;
line-height: var(--typography-line-height-tight);

Expand All @@ -390,7 +389,7 @@
display: flex;
align-items: center;
justify-content: space-between;
column-gap: var(--str-chat__spacing-2);
column-gap: var(--space-8);
font-weight: var(--typography-font-weight-semi-bold);
font-size: var(--typography-font-size-sm);

Expand Down Expand Up @@ -435,29 +434,12 @@
color: var(--str-chat__voice-recording-attachment-widget-color);
}

.str-chat__message-attachment-voice-recording-widget--first-row {
@include utils.ellipsis-text-parent;

width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--str-chat__spacing-1);
}

.str-chat__message-attachment-download-icon {
svg {
width: calc(var(--str-chat__spacing-px) * 24);
height: calc(var(--str-chat__spacing-px) * 16);
}
}

.str-chat__message-attachment__voice-recording-widget__error-message {
display: flex;
align-items: center;
justify-content: flex-start;
gap: var(--str-chat__spacing-1);
}
}

.str-chat__message-attachment__voice-recording-widget__right-section {
Expand All @@ -476,10 +458,6 @@
.str-chat__message-attachment-download-icon {
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 16);
}

.str-chat__attachment-type-icon {
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 37);
}
}

.str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-no-text {
Expand Down
2 changes: 0 additions & 2 deletions src/components/Attachment/styling/CardAudio.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@use '../../../styling/utils';

.str-chat__message-attachment-card--audio {
.str-chat__message-attachment-card--content {
padding: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Attachment/styling/Geolocation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

.str-chat__message-attachment-geolocation__status--active-until {
text-transform: lowercase;
font: var(--str-chat__caption-text);
font: var(--str-chat__metadata-emphasis-text);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Attachment/styling/Giphy.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use '../../../styling/utils';
@use '../../../styling/utils' as utils;

.str-chat {
/* The height of GIFs */
Expand Down
2 changes: 1 addition & 1 deletion src/components/Attachment/styling/ModalGallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
grid-template-rows: 50% 50%;
overflow: hidden;
border-radius: var(--radius-lg);
gap: var(--str-chat__spacing-0_5);
gap: var(--space-2);
width: $max-width;
max-width: $max-width;
// CDN resize requires height/max-height to be present on the img element, this rule ensures that
Expand Down
3 changes: 2 additions & 1 deletion src/components/Avatar/styling/Avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
height: 100%;
}

.str-chat__icon--person {
// people icon for avatars without images and initials
.str-chat__icon {
width: var(--avatar-icon-size);
height: var(--avatar-icon-size);
stroke-width: var(--avatar-icon-stroke-width);
Expand Down
3 changes: 0 additions & 3 deletions src/components/Channel/styling/Channel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,6 @@
/* Right (left in RTL layout) border of the component */
--str-chat__channel-border-inline-end: none;

/* The icon color used when no channel is selected */
--str-chat__channel-empty-indicator-color: var(--str-chat__disabled-color);

/* The base surface color behind the loading shimmer */
--str-chat__channel-loading-state-color: var(--background-core-surface);
}
Expand Down
10 changes: 3 additions & 7 deletions src/components/ChannelList/styling/ChannelList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
.str-chat__channel-list-inner {
height: 100%;
overflow: hidden;
padding-bottom: var(--str-chat__spacing-2_5);
padding-bottom: calc(var(--space-8) + var(--space-2));

.str-chat__channel-list-inner__main {
height: 100%;
Expand All @@ -139,7 +139,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
padding: var(--str-chat__spacing-3);
padding: calc(var(--space-8) + var(--space-4));

p {
color: var(--text-secondary);
Expand All @@ -152,17 +152,13 @@
.str-chat__load-more-button {
display: flex;
justify-content: center;
margin: var(--str-chat__spacing-2) 0;
margin: var(--space-8) 0;

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

.stream-chat__paginated-list {
gap: 0;
}

.str-chat__load-more-button__button {
@include utils.component-layer-overrides('channel-list-load-more');
width: 80%;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialog/styling/Alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}

.str-chat__alert-header__description {
font: var(--str-chat__caption-default-tex);
font: var(--str-chat__caption-default-text);
}
}
}
Expand Down
6 changes: 1 addition & 5 deletions src/components/Dialog/styling/Prompt.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

.str-chat__prompt__header__description {
font: var(--str-chat__body-text);
font: var(--str-chat__caption-default-text);
color: var(--text-secondary);
}

Expand All @@ -39,10 +39,6 @@
/* Vertical padding so focus rings (e.g. TextInput wrapper box-shadow) are not clipped by scrollable-y */
padding: var(--spacing-xxs) var(--spacing-xl);
@include utils.scrollable-y;

.str-chat__prompt__title {
margin-bottom: 1rem;
}
}

.str-chat__prompt__footer {
Expand Down
6 changes: 1 addition & 5 deletions src/components/Dialog/styling/Viewer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}

.str-chat__viewer__header__description {
font: var(--str-chat__body-text);
font: var(--str-chat__caption-default-text);
color: var(--text-secondary);
}

Expand All @@ -52,10 +52,6 @@
padding: 0 var(--spacing-xl);
flex: 1;
min-height: 0;

.str-chat__viewer__title {
margin-bottom: 1rem;
}
}

.str-chat__viewer__footer {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
@use '../../../styling/utils';

.str-chat {
/* The text color used when no channel is selected */
--str-chat__channel-empty-color: var(--text-secondary);
}

.str-chat__empty-channel {
--str-chat-icon-color: var(--text-tertiary);
display: flex;
Expand All @@ -26,11 +21,6 @@
color: var(--str-chat-icon-color);
}

.str-chat__empty-channel-notifications {
position: absolute;
inset-block-end: var(--str-chat__spacing-2);
}

.str-chat__empty-channel-text {
margin: 0;
max-width: 230px;
Expand Down
37 changes: 0 additions & 37 deletions src/components/Form/styling/SwitchField.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
var(--background-core-surface-subtle)
);
--str-chat__switch-field-border-radius: var(--radius-md);
--str-chat__switch-field-title-font-size: var(--typography-font-size-sm, 14px);
--str-chat__switch-field-title-font-weight: var(--typography-font-weight-medium, 500);
--str-chat__switch-field-title-line-height: var(--typography-line-height-tight, 16px);
--str-chat__switch-field-title-color: var(--text-primary, #1a1b25);
--str-chat__switch-field-description-font-size: var(--typography-font-size-xs, 12px);
--str-chat__switch-field-description-font-weight: var(
--typography-font-weight-regular,
400
);
--str-chat__switch-field-description-color: var(--text-tertiary, #687385);
--str-chat__switch-field__track-off-bg: var(
--control-toggle-switch-bg,
var(--border-core-on-surface, #a3acba)
Expand Down Expand Up @@ -66,33 +56,6 @@
cursor: pointer;
}

&__content {
display: flex;
flex-direction: column;
gap: var(--spacing-xxs, 4px);
min-width: 0;
}

&__title {
font-size: var(--str-chat__switch-field-title-font-size);
font-weight: var(--str-chat__switch-field-title-font-weight);
line-height: var(--str-chat__switch-field-title-line-height);
color: var(--str-chat__switch-field-title-color);
}

&__description {
font-size: var(--str-chat__switch-field-description-font-size);
font-weight: var(--str-chat__switch-field-description-font-weight);
line-height: var(--str-chat__switch-field-title-line-height);
color: var(--str-chat__switch-field-description-color);
}

&__expanded-content {
flex-shrink: 0;
display: flex;
align-items: center;
}

&__switch {
display: flex;
align-items: center;
Expand Down
Loading
Loading