|
143 | 143 | /* Box shadow applied to file attachments */ |
144 | 144 | --str-chat__file-attachment-box-shadow: none; |
145 | 145 |
|
146 | | - /* Border radius applied to audio recording widget */ |
147 | | - --str-chat__voice-recording-attachment-widget-border-radius: calc( |
148 | | - var(--str-chat__message-bubble-border-radius) - var(--str-chat__attachment-margin) |
149 | | - ); |
150 | | - |
151 | | - /* Text color used in audio recording widget */ |
152 | | - --str-chat__voice-recording-attachment-widget-color: var(--str-chat__text-color); |
153 | | - |
154 | | - /* Border radius applied to audio recording widget */ |
155 | | - --str-chat__voice-recording-attachment-widget-secondary-color: var( |
156 | | - --str-chat__text-low-emphasis-color |
157 | | - ); |
158 | | - |
159 | | - /* The text/icon color for low emphasis texts (for example file size) in audio recording widget */ |
160 | | - --str-chat__voice-recording-attachment-widget-background-color: transparent; |
161 | | - |
162 | | - /* Top border of audio recording widget */ |
163 | | - --str-chat__voice-recording-attachment-widget-border-block-start: none; |
164 | | - |
165 | | - /* Bottom border of audio recording widget */ |
166 | | - --str-chat__voice-recording-attachment-widget-border-block-end: none; |
167 | | - |
168 | | - /* Left (right in RTL layout) border of audio recording widget */ |
169 | | - --str-chat__voice-recording-attachment-widget-border-inline-start: none; |
170 | | - |
171 | | - /* Right (left in RTL layout) border of audio recording widget */ |
172 | | - --str-chat__voice-recording-attachment-widget-border-inline-end: none; |
173 | | - |
174 | | - /* Box shadow applied to audio recording widget */ |
175 | | - --str-chat__voice-recording-attachment-widget-box-shadow: none; |
176 | | - |
177 | 146 | /* Border radius applied to the play / pause button of audio widget */ |
178 | 147 | --str-chat__audio-attachment-controls-button-border-radius: var( |
179 | 148 | --str-chat__border-radius-circle |
|
382 | 351 | @include utils.component-layer-overrides('file-attachment'); |
383 | 352 | } |
384 | 353 |
|
385 | | - .str-chat__message-attachment__voice-recording-widget { |
386 | | - @include utils.component-layer-overrides('voice-recording-attachment-widget'); |
387 | | - display: flex; |
388 | | - align-items: center; |
389 | | - justify-content: center; |
390 | | - padding-block: var(--spacing-xs); |
391 | | - padding-inline-start: var(--spacing-xs); |
392 | | - padding-inline-end: var(--spacing-sm); |
393 | | - min-height: 60px; |
394 | | - |
395 | | - .str-chat__message-attachment__voice-recording-widget__play-button-container { |
396 | | - padding: var(--spacing-xxs); |
397 | | - } |
398 | | - |
399 | | - .str-chat__message-attachment__voice-recording-widget__metadata { |
400 | | - flex: 1; |
401 | | - min-width: 180px; |
402 | | - padding-inline: var(--spacing-xs); |
403 | | - |
404 | | - a { |
405 | | - cursor: pointer; |
406 | | - text-decoration: none; |
407 | | - color: var(--str-chat__voice-recording-attachment-widget-color); |
408 | | - } |
409 | | - |
410 | | - .str-chat__message-attachment-download-icon { |
411 | | - svg { |
412 | | - width: calc(var(--str-chat__spacing-px) * 24); |
413 | | - height: calc(var(--str-chat__spacing-px) * 16); |
414 | | - } |
415 | | - } |
416 | | - } |
417 | | - |
418 | | - .str-chat__message-attachment__voice-recording-widget__right-section { |
419 | | - } |
420 | | - |
421 | | - .str-chat__message-attachment__voice-recording-widget__timer { |
422 | | - min-width: calc(var(--str-chat__spacing-px) * 40); |
423 | | - width: calc(var(--str-chat__spacing-px) * 40); |
424 | | - font: var(--str-chat__metadata-emphasis-text); |
425 | | - } |
426 | | - } |
427 | | - |
428 | 354 | .str-chat__message-attachment-with-actions.str-chat__message-attachment--giphy { |
429 | 355 | } |
430 | 356 |
|
|
433 | 359 | } |
434 | 360 | } |
435 | 361 |
|
| 362 | +.str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-no-text:not( |
| 363 | + .str-chat__message--has-quoted-message |
| 364 | + ) { |
| 365 | + .str-chat__message-bubble { |
| 366 | + padding: 0; |
| 367 | + } |
| 368 | +} |
| 369 | + |
436 | 370 | .str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-no-text { |
437 | 371 | .str-chat__message-bubble { |
438 | 372 | border: 1px solid var(--chat-border-incoming); |
|
441 | 375 |
|
442 | 376 | .str-chat__message-attachment { |
443 | 377 | background-color: var(--chat-bg-incoming); |
444 | | - |
445 | | - .str-chat__message-attachment__voice-recording-widget { |
446 | | - padding: unset; |
447 | | - padding-inline-end: var(--spacing-xxs); |
448 | | - } |
449 | 378 | } |
450 | 379 | } |
451 | 380 |
|
|
0 commit comments