UI: Adjust styles for bot picker (#4875)

This commit is contained in:
Alexander Zinchuk 2024-08-29 15:52:33 +02:00
parent ff7c6dca5c
commit 1bdf79b69f
3 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,5 @@
@use '../../styles/mixins';
.Composer { .Composer {
--base-height: 3.5rem; --base-height: 3.5rem;
@ -841,7 +843,7 @@
width: 100%; width: 100%;
background: var(--color-background); background: var(--color-background);
border-radius: var(--border-radius-messages); border-radius: var(--border-radius-messages);
padding: 0.5rem 0; padding: 0.5rem;
max-height: 15rem; max-height: 15rem;
overflow-x: hidden; overflow-x: hidden;
@ -854,6 +856,10 @@
transform-origin: bottom; transform-origin: bottom;
transition: opacity var(--layer-transition), transform var(--layer-transition); transition: opacity var(--layer-transition), transform var(--layer-transition);
scrollbar-gutter: stable;
@include mixins.adapt-padding-to-scrollbar(0.5rem);
&:not(.shown) { &:not(.shown) {
display: none; display: none;
} }

View File

@ -10,6 +10,7 @@
grid-auto-flow: dense; grid-auto-flow: dense;
grid-gap: 1px; grid-gap: 1px;
padding: 0; padding: 0;
scrollbar-gutter: stable both-edges;
@media (max-width: 600px) { @media (max-width: 600px) {
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);

View File

@ -1,13 +1,5 @@
.BaseResult { .BaseResult {
&.chat-item-clickable > .ListItem-button { padding-bottom: 0.5rem;
padding-left: 1.25rem !important;
padding-right: 1.25rem !important;
.title {
display: block;
text-overflow: ellipsis;
}
}
.thumb { .thumb {
background-color: var(--color-background-secondary); background-color: var(--color-background-secondary);