File size: 2,255 Bytes
fc93158 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | /* Split View Layout */
.chat-split-container {
display: flex;
gap: 0;
flex: 1;
min-height: 0;
height: 100%;
}
.chat-main {
min-width: 400px;
display: flex;
flex-direction: column;
overflow: hidden;
/* Smooth transition when sidebar opens/closes */
transition: flex 250ms ease-out;
}
.chat-sidebar {
flex: 1;
min-width: 300px;
border-left: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
animation: slide-in 200ms ease-out;
}
@keyframes slide-in {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
/* Sidebar Panel */
.sidebar-panel {
display: flex;
flex-direction: column;
height: 100%;
background: var(--panel);
}
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
position: sticky;
top: 0;
z-index: 10;
background: var(--panel);
}
/* Smaller close button for sidebar */
.sidebar-header .btn {
padding: 4px 8px;
font-size: 14px;
min-width: auto;
line-height: 1;
}
.sidebar-title {
font-weight: 600;
font-size: 14px;
}
.sidebar-content {
flex: 1;
overflow: auto;
padding: 16px;
}
.sidebar-markdown {
font-size: 14px;
line-height: 1.5;
}
.sidebar-markdown .markdown-inline-image {
display: block;
max-width: 100%;
max-height: 420px;
width: auto;
height: auto;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--secondary) 70%, transparent);
object-fit: contain;
}
.sidebar-markdown pre {
background: rgba(0, 0, 0, 0.12);
border-radius: 4px;
padding: 12px;
overflow-x: auto;
}
.sidebar-markdown code {
font-family: var(--mono);
font-size: 13px;
}
/* Mobile: Full-screen modal */
@media (max-width: 768px) {
.chat-split-container--open {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
}
.chat-split-container--open .chat-main {
display: none; /* Hide chat on mobile when sidebar open */
}
.chat-split-container--open .chat-sidebar {
width: 100%;
min-width: 0;
border-left: none;
}
}
|