-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
569 additions
and
26 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
src/v2/styles/AttachmentPreviewList/AttachmentPreviewList-layout.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
@use '../utils'; | ||
|
||
.str-chat__attachment-preview-list { | ||
$preview-height: calc(var(--str-chat__spacing-px) * 72); | ||
|
||
@include utils.flex-row-center; | ||
padding: var(--str-chat__spacing-1_5); | ||
width: 100%; | ||
|
||
.str-chat__attachment-list-scroll-container { | ||
overflow-y: hidden; | ||
overflow-x: auto; | ||
width: 100%; | ||
max-width: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: flex-start; | ||
column-gap: var(--str-chat__spacing-2); | ||
} | ||
|
||
@mixin overlay { | ||
@include utils.flex-row-center; | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.str-chat__attachment-preview-image { | ||
position: relative; | ||
height: $preview-height; | ||
width: $preview-height; | ||
|
||
.str-chat__attachment-preview-image-loading { | ||
@include overlay; | ||
} | ||
|
||
.str-chat__attachment-preview-thumbnail { | ||
object-fit: cover; | ||
height: $preview-height; | ||
width: $preview-height; | ||
word-break: break-all; | ||
overflow: hidden; | ||
} | ||
} | ||
|
||
.str-chat__attachment-preview-file { | ||
@include utils.flex-row-center; | ||
height: $preview-height; | ||
width: calc(var(--str-chat__spacing-px) * 200); | ||
position: relative; | ||
padding: var(--str-chat__spacing-4); | ||
column-gap: var(--str-chat__spacing-2); | ||
|
||
.str-chat__attachment-preview-file-end { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: start; | ||
justify-content: center; | ||
overflow-y: visible; | ||
overflow-x: clip; | ||
|
||
.str-chat__attachment-preview-file-name { | ||
@include utils.ellipsis-text; | ||
max-width: 100%; | ||
} | ||
|
||
.str-chat__attachment-preview-file-download { | ||
line-height: calc(var(--str-chat__spacing-px) * 16); | ||
|
||
svg { | ||
width: calc(var(--str-chat__spacing-px) * 16); | ||
height: calc(var(--str-chat__spacing-px) * 16); | ||
} | ||
} | ||
} | ||
} | ||
|
||
.str-chat__attachment-preview-delete { | ||
position: absolute; | ||
top: 0; | ||
inset-inline-end: 0; | ||
cursor: pointer; | ||
z-index: 1; | ||
|
||
svg { | ||
width: calc(var(--str-chat__spacing-px) * 24); | ||
height: calc(var(--str-chat__spacing-px) * 24); | ||
} | ||
} | ||
|
||
.str-chat__attachment-preview-error { | ||
@include overlay; | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
.str-chat__attachment-preview-list-angular-host { | ||
width: 100%; | ||
max-width: 100%; | ||
} |
97 changes: 97 additions & 0 deletions
97
src/v2/styles/AttachmentPreviewList/AttachmentPreviewList-theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
@use '../utils'; | ||
|
||
.str-chat { | ||
--str-chat__attachment-preview-list-font-family: var(--str-chat__font-family); | ||
--str-chat__attachment-preview-list-border-radius: var(--str-chat__border-radius-md); | ||
--str-chat__attachment-preview-list-color: var(--str-chat__text-color); | ||
--str-chat__attachment-preview-list-background-color: transparent; | ||
--str-chat__attachment-preview-list-border-block-start: none; | ||
--str-chat__attachment-preview-list-border-block-end: none; | ||
--str-chat__attachment-preview-list-border-inline-start: none; | ||
--str-chat__attachment-preview-list-border-inline-end: none; | ||
--str-chat__attachment-preview-list-box-shadow: none; | ||
--str-chat__attachment-preview-close-icon-background: var(--str-chat__text-low-emphasis-color); | ||
--str-chat__attachment-preview-close-icon-color: var(--str-chat__on-disabled-color); | ||
--str-chat__attachment-preview-retry-icon-color: var(--str-chat__primary-color); | ||
--str-chat__attachment-preview-download-icon-color: var(--str-chat__text-low-emphasis-color); | ||
--str-chat__attachment-preview-overlay-color: var(--str-chat__overlay-color); | ||
|
||
--str-chat__attachment-preview-image-font-family: var(--str-chat__font-family); | ||
--str-chat__attachment-preview-image-border-radius: var(--str-chat__border-radius-sm); | ||
--str-chat__attachment-preview-image-color: var(--str-chat__text-color); | ||
--str-chat__attachment-preview-image-background-color: transparent; | ||
--str-chat__attachment-preview-image-border-block-start: none; | ||
--str-chat__attachment-preview-image-border-block-end: none; | ||
--str-chat__attachment-preview-image-border-inline-start: none; | ||
--str-chat__attachment-preview-image-border-inline-end: none; | ||
--str-chat__attachment-preview-image-box-shadow: none; | ||
|
||
--str-chat__attachment-preview-file-font-family: var(--str-chat__font-family); | ||
--str-chat__attachment-preview-file-border-radius: var(--str-chat__border-radius-md); | ||
--str-chat__attachment-preview-file-color: var(--str-chat__text-color); | ||
--str-chat__attachment-preview-file-background-color: transparent; | ||
--str-chat__attachment-preview-file-border-block-start: 1px solid var(--str-chat__surface-color); | ||
--str-chat__attachment-preview-file-border-block-end: 1px solid var(--str-chat__surface-color); | ||
--str-chat__attachment-preview-file-border-inline-start: 1px solid var(--str-chat__surface-color); | ||
--str-chat__attachment-preview-file-border-inline-end: 1px solid var(--str-chat__surface-color); | ||
--str-chat__attachment-preview-file-box-shadow: none; | ||
} | ||
|
||
.str-chat__attachment-preview-list { | ||
@include utils.component-layer-overrides('attachment-preview-list'); | ||
|
||
.str-chat__attachment-preview-image { | ||
@include utils.component-layer-overrides('attachment-preview-image'); | ||
|
||
.str-chat__attachment-preview-thumbnail, | ||
.str-chat__attachment-preview-image-loading { | ||
border-radius: var(--str-chat__attachment-preview-image-border-radius); | ||
background-color: var(--str-chat__attachment-preview-overlay-color); | ||
} | ||
} | ||
|
||
.str-chat__attachment-preview-file { | ||
@include utils.component-layer-overrides('attachment-preview-file'); | ||
|
||
.str-chat__attachment-preview-file-name { | ||
font-size: 1rem; | ||
line-height: 1.25rem; | ||
font-weight: 500; | ||
} | ||
|
||
.str-chat__attachment-preview-file-download { | ||
svg path { | ||
fill: var(--str-chat__attachment-preview-download-icon-color); | ||
} | ||
} | ||
} | ||
|
||
.str-chat__attachment-preview-delete { | ||
svg { | ||
path { | ||
fill: var(--str-chat__attachment-preview-close-icon-color); | ||
} | ||
|
||
rect, | ||
circle { | ||
fill: var(--str-chat__attachment-preview-close-icon-background); | ||
} | ||
} | ||
} | ||
|
||
.str-chat__attachment-preview-error { | ||
background-color: var(--str-chat__attachment-preview-overlay-color); | ||
|
||
svg path { | ||
fill: var(--str-chat__attachment-preview-retry-icon-color); | ||
} | ||
|
||
&.str-chat__attachment-preview-error-image { | ||
border-radius: var(--str-chat__attachment-preview-image-border-radius); | ||
} | ||
|
||
&.str-chat__attachment-preview-error-file { | ||
border-radius: var(--str-chat__attachment-preview-file-border-radius); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
min-width: 0; | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
@use '../utils'; | ||
|
||
.str-chat__message-input { | ||
$send-button-size: calc(var(--str-chat__spacing-px) * 40); | ||
|
||
width: 100%; | ||
height: 100%; | ||
max-height: 100%; | ||
display: flex; | ||
align-items: end; | ||
justify-content: center; | ||
padding: var(--str-chat__spacing-1) var(--str-chat__spacing-2); | ||
|
||
.str-chat__file-input-container { | ||
@include utils.flex-row-center; | ||
width: calc(var(--str-chat__spacing-px) * 40); | ||
height: calc(var(--str-chat__spacing-px) * 40); | ||
cursor: pointer; | ||
|
||
.str-chat__file-input { | ||
display: none; | ||
} | ||
|
||
.str-chat__file-input-label { | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
.str-chat__message-textarea-container { | ||
@include utils.flex-col-center; | ||
width: 100%; | ||
min-width: 0; | ||
max-height: 100%; | ||
|
||
.str-chat__message-textarea-with-emoji-picker { | ||
width: 100%; | ||
min-height: 0; | ||
max-height: 100%; | ||
display: flex; | ||
padding: var(--str-chat__spacing-2) var(--str-chat__spacing-5); | ||
|
||
.str-chat__message-textarea { | ||
width: 100%; | ||
display: flex; | ||
max-height: 100%; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
} | ||
} | ||
} | ||
|
||
.str-chat__message-textarea-angular-host { | ||
@include utils.flex-row-center; | ||
width: 100%; | ||
} | ||
|
||
.str-chat__send-button { | ||
@include utils.flex-row-center; | ||
cursor: pointer; | ||
padding: 0; | ||
width: $send-button-size; | ||
height: $send-button-size; | ||
min-width: $send-button-size; | ||
|
||
svg { | ||
width: calc(var(--str-chat__spacing-px) * 32); | ||
height: calc(var(--str-chat__spacing-px) * 32); | ||
} | ||
} | ||
|
||
.str-chat__message-input-cooldown { | ||
@include utils.flex-row-center; | ||
margin-inline-start: var(--str-chat__spacing-2); | ||
margin-block: calc(var(--str-chat__spacing-2) / 2); | ||
min-width: calc(#{$send-button-size} - var(--str-chat__spacing-2)); | ||
min-height: calc(#{$send-button-size} - var(--str-chat__spacing-2)); | ||
} | ||
|
||
.str-chat__message-input-not-allowed { | ||
align-self: center; | ||
padding: var(--str-chat__spacing-3); | ||
} | ||
} | ||
|
||
.str-chat__message-input-angular-host { | ||
max-height: 50%; | ||
} |
Oops, something went wrong.