tweak(ui): fit session attachment card width
This commit is contained in:
parent
cb22b689de
commit
085f66daed
1 changed files with 6 additions and 3 deletions
|
|
@ -62,9 +62,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&[data-type="file"] {
|
&[data-type="file"] {
|
||||||
width: min(220px, 100%);
|
width: fit-content;
|
||||||
|
max-width: min(260px, 100%);
|
||||||
height: 48px;
|
height: 48px;
|
||||||
padding: 0 10px;
|
padding: 0 18px 0 10px;
|
||||||
background: var(--background-stronger);
|
background: var(--background-stronger);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -90,7 +91,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-slot="user-message-attachment-file"] {
|
[data-slot="user-message-attachment-file"] {
|
||||||
width: 100%;
|
width: fit-content;
|
||||||
|
max-width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -105,6 +107,7 @@
|
||||||
|
|
||||||
[data-slot="user-message-attachment-name"] {
|
[data-slot="user-message-attachment-name"] {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
max-width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue