fix: make control ui chat scroll page
This commit is contained in:
@@ -429,6 +429,16 @@
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.chat {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.shell--chat .chat {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.chat-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -460,8 +470,9 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
max-height: 60vh;
|
||||
overflow: auto;
|
||||
flex: 1;
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
padding: 14px 12px;
|
||||
min-width: 0;
|
||||
border-radius: 16px;
|
||||
@@ -731,6 +742,16 @@
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.shell--chat .chat-compose {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 5;
|
||||
margin-top: 0;
|
||||
padding-top: 12px;
|
||||
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--panel) 35%);
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.chat-compose__field {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
.shell {
|
||||
--shell-pad: 18px;
|
||||
--shell-gap: 18px;
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
|
||||
@@ -6,13 +8,16 @@
|
||||
grid-template-areas:
|
||||
"topbar topbar"
|
||||
"nav content";
|
||||
gap: 18px;
|
||||
padding: 18px;
|
||||
gap: var(--shell-gap);
|
||||
padding: var(--shell-pad);
|
||||
animation: dashboard-enter 0.6s ease-out;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
grid-area: topbar;
|
||||
position: sticky;
|
||||
top: var(--shell-pad);
|
||||
z-index: 20;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
@@ -51,6 +56,16 @@
|
||||
|
||||
.nav {
|
||||
grid-area: nav;
|
||||
position: sticky;
|
||||
top: calc(
|
||||
var(--shell-pad) + var(--topbar-height, 0px) + var(--shell-gap)
|
||||
);
|
||||
align-self: start;
|
||||
max-height: calc(
|
||||
100vh - var(--topbar-height, 0px) - var(--shell-gap) -
|
||||
var(--shell-pad) - var(--shell-pad)
|
||||
);
|
||||
overflow: auto;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
@@ -132,6 +147,14 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.shell--chat .content {
|
||||
min-height: calc(
|
||||
100vh - var(--topbar-height, 0px) - var(--shell-gap) -
|
||||
var(--shell-pad) - var(--shell-pad)
|
||||
);
|
||||
}
|
||||
|
||||
.content-header {
|
||||
@@ -204,16 +227,19 @@
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.shell {
|
||||
--shell-pad: 12px;
|
||||
--shell-gap: 12px;
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: auto auto 1fr;
|
||||
grid-template-areas:
|
||||
"topbar"
|
||||
"nav"
|
||||
"content";
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.nav {
|
||||
position: static;
|
||||
max-height: none;
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
overflow-x: auto;
|
||||
@@ -234,6 +260,7 @@
|
||||
}
|
||||
|
||||
.topbar {
|
||||
position: static;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
|
||||
Reference in New Issue
Block a user