fix: carrousel styling

This commit is contained in:
abdou6666 2024-12-05 18:09:23 +01:00
parent a6ab2be5e0
commit be99405853
2 changed files with 3 additions and 6 deletions

View File

@ -38,14 +38,14 @@
display: flex;
flex-direction: row;
position: relative;
max-width: calc(100% - 2rem);
max-width: calc(100% - 40px); // same as avatar spacing
width: auto;
.sc-message--avatar {
width: 32px;
height: 32px;
margin-right: 4px;
margin-top: 2px;
margin: 2px 4px;
background-position: 0 0;
flex-shrink: 0;
background-size: cover;
@ -55,8 +55,6 @@
.sc-message--wrapper {
display: flex;
flex-direction: column;
max-width: 290px;
width: 100%;
.sc-message--text {
padding: 10px 20px;

View File

@ -1,7 +1,7 @@
.sc-message--carousel {
border-radius: 0.5rem;
position: relative;
width: 100%;
width: 275px;
overflow: hidden;
.sc-message--carousel-inner {
@ -18,7 +18,6 @@
.sc-message--carousel-element {
width: 100%;
min-width: 290px;
.sc-message--carousel-element-image {
background-repeat: no-repeat;
background-size: cover;