fix: ChatGPT-style mobile layout — full-width chat, example questions visible, horizontal saved-chat chips, sources below
This commit is contained in:
parent
cc9188fa08
commit
ee0cc62500
1 changed files with 16 additions and 5 deletions
|
|
@ -162,17 +162,28 @@
|
|||
.assistant-topbar { flex-wrap:wrap; }
|
||||
.assistant-topbar-title { flex-basis:100%; }
|
||||
.assistant-status { align-self:flex-start; }
|
||||
.assistant-layout { grid-template-columns:1fr; }
|
||||
.assistant-history { grid-column:1; grid-template-columns:1fr; }
|
||||
.assistant-history .card { grid-column:1; grid-row:auto; }
|
||||
/* ChatGPT-style mobile: one column, natural page flow, everything reachable by scroll. */
|
||||
.assistant-layout { display:flex; flex-direction:column; grid-template-columns:none; height:auto; min-height:100dvh; }
|
||||
.assistant-history { display:flex; flex-direction:row; align-items:center; gap:8px; overflow-x:auto; padding:8px 10px; border-bottom:1px solid var(--g200); background:white; height:auto; min-height:0; }
|
||||
.assistant-history .assistant-new-chat { flex:0 0 auto; }
|
||||
.assistant-view-switch { flex:0 0 auto; display:flex; }
|
||||
.assistant-history .card { flex:1 1 auto; display:block; min-width:0; box-shadow:none; border:none; background:none; }
|
||||
#assistant-saved-chats { flex-direction:row; padding:0; gap:6px; overflow-x:auto; }
|
||||
.assistant-saved-chat { flex:0 0 auto; max-width:200px; }
|
||||
.assistant-main { flex:1 1 auto; min-height:60vh; display:flex; }
|
||||
#assistant-chat-view { display:flex; flex-direction:column; flex:1 1 auto; min-height:60vh; }
|
||||
.assistant-messages { flex:1 1 auto; max-height:none; padding:10px 12px; }
|
||||
.assistant-empty { margin:20px auto; }
|
||||
.assistant-examples { justify-content:flex-start; }
|
||||
.assistant-examples button { max-width:100%; white-space:normal; text-align:left; border-radius:12px; }
|
||||
.assistant-side { border-top:1px solid var(--g200); max-height:40vh; overflow-y:auto; }
|
||||
.assistant-composer { position:static; flex:0 0 auto; }
|
||||
.assistant-toolbar { flex-direction:column; align-items:stretch; }
|
||||
.assistant-toolbar-actions { display:grid; grid-template-columns:1fr 1fr; }
|
||||
.assistant-toolbar-actions .btn-sm { width:100%; justify-content:center; }
|
||||
.assistant-messages { padding:10px; }
|
||||
.assistant-msg, .assistant-msg.user { max-width:100%; }
|
||||
.assistant-bubble { font-size:13px; padding:11px 12px; }
|
||||
.assistant-table-scroll::after { display:block; }
|
||||
.assistant-composer { position:sticky; bottom:0; z-index:3; }
|
||||
.assistant-composer-footer { flex-direction:column; align-items:stretch; }
|
||||
.assistant-composer-footer .btn-generate { width:100%; }
|
||||
.assistant-composer-footer #btn-assistant-cancel:not([hidden]) { width:100%; justify-content:center; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue