|
55 | 55 | /* Grow, shrink, and use 0 base for proper scrolling */ |
56 | 56 | overflow-y: auto; |
57 | 57 | overflow-x: hidden; |
58 | | - padding: 0 6px 6px; |
| 58 | + padding: 0 clamp(6px, 1vw, 12px) 6px; |
59 | 59 | margin: 0 0 0 0; |
60 | 60 | min-height: 0; |
61 | 61 | /* Allow shrinking for flex scroll behavior */ |
|
602 | 602 | display: flex; |
603 | 603 | align-items: center; |
604 | 604 | justify-content: space-between; |
| 605 | + gap: 8px; |
605 | 606 | padding: 6px 10px; |
606 | 607 | border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent); |
607 | 608 | } |
|
1037 | 1038 | } |
1038 | 1039 |
|
1039 | 1040 | .chat-controls__session { |
1040 | | - min-width: 140px; |
1041 | | - max-width: 300px; |
| 1041 | + min-width: 0; |
| 1042 | + max-width: none; |
| 1043 | +} |
| 1044 | + |
| 1045 | +.chat-controls__agent { |
| 1046 | + min-width: 0; |
| 1047 | + max-width: none; |
1042 | 1048 | } |
1043 | 1049 |
|
1044 | 1050 | .chat-controls__session-row { |
1045 | | - display: flex; |
| 1051 | + display: grid; |
| 1052 | + grid-template-columns: |
| 1053 | + minmax(116px, 5fr) minmax(132px, 7fr) minmax(132px, 5fr) |
| 1054 | + minmax(128px, 4fr); |
| 1055 | + grid-template-areas: "agent session model thinking"; |
1046 | 1056 | align-items: center; |
1047 | | - gap: 12px; |
1048 | | - flex-wrap: wrap; |
| 1057 | + gap: 8px; |
| 1058 | + width: 100%; |
| 1059 | + min-width: 0; |
| 1060 | +} |
| 1061 | + |
| 1062 | +.chat-controls__session-row--single-agent { |
| 1063 | + grid-template-columns: minmax(132px, 7fr) minmax(132px, 5fr) minmax(128px, 4fr); |
| 1064 | + grid-template-areas: "session model thinking"; |
| 1065 | +} |
| 1066 | + |
| 1067 | +.chat-controls__session-picker { |
| 1068 | + grid-area: session; |
| 1069 | +} |
| 1070 | + |
| 1071 | +.chat-controls__agent { |
| 1072 | + grid-area: agent; |
1049 | 1073 | } |
1050 | 1074 |
|
1051 | 1075 | .chat-controls__model { |
1052 | | - min-width: 170px; |
1053 | | - max-width: 320px; |
| 1076 | + grid-area: model; |
| 1077 | + min-width: 0; |
| 1078 | + max-width: none; |
| 1079 | +} |
| 1080 | + |
| 1081 | +.chat-controls__thinking-select { |
| 1082 | + grid-area: thinking; |
| 1083 | + min-width: 0; |
| 1084 | + max-width: none; |
1054 | 1085 | } |
1055 | 1086 |
|
1056 | 1087 | .chat-controls__thinking { |
|
1075 | 1106 | .chat-controls__session select { |
1076 | 1107 | padding: 6px 10px; |
1077 | 1108 | font-size: 13px; |
1078 | | - max-width: 300px; |
| 1109 | + width: 100%; |
| 1110 | + max-width: none; |
1079 | 1111 | overflow: hidden; |
1080 | 1112 | text-overflow: ellipsis; |
1081 | 1113 | } |
1082 | 1114 |
|
| 1115 | +.chat-controls__agent select { |
| 1116 | + width: 100%; |
| 1117 | + max-width: none; |
| 1118 | +} |
| 1119 | + |
1083 | 1120 | .chat-controls__model select { |
1084 | | - max-width: 320px; |
| 1121 | + width: 100%; |
| 1122 | + max-width: none; |
| 1123 | +} |
| 1124 | + |
| 1125 | +.chat-controls__thinking-select select { |
| 1126 | + width: 100%; |
| 1127 | + max-width: none; |
1085 | 1128 | } |
1086 | 1129 |
|
1087 | 1130 | .chat-controls__thinking { |
|
1105 | 1148 | border-color: rgba(16, 24, 40, 0.15); |
1106 | 1149 | } |
1107 | 1150 |
|
| 1151 | +@media (max-width: 1535px) { |
| 1152 | + .chat-controls__thinking-select { |
| 1153 | + min-width: 0; |
| 1154 | + max-width: none; |
| 1155 | + } |
| 1156 | +} |
| 1157 | + |
1108 | 1158 | @media (max-width: 768px) { |
1109 | 1159 | .chat-controls__session { |
1110 | 1160 | min-width: 120px; |
1111 | 1161 | max-width: none; |
1112 | 1162 | } |
1113 | 1163 |
|
| 1164 | + .chat-controls__agent { |
| 1165 | + min-width: 120px; |
| 1166 | + max-width: none; |
| 1167 | + } |
| 1168 | + |
1114 | 1169 | .chat-controls__model { |
1115 | 1170 | min-width: 140px; |
1116 | 1171 | max-width: none; |
|
1123 | 1178 | .chat-compose__field textarea { |
1124 | 1179 | min-height: 64px; |
1125 | 1180 | } |
| 1181 | + |
| 1182 | + .agent-chat__input-btn, |
| 1183 | + .agent-chat__toolbar .btn--ghost, |
| 1184 | + .chat-send-btn { |
| 1185 | + width: 44px; |
| 1186 | + min-width: 44px; |
| 1187 | + height: 44px; |
| 1188 | + } |
| 1189 | + |
| 1190 | + .agent-chat__suggestions { |
| 1191 | + grid-template-columns: minmax(0, 1fr); |
| 1192 | + } |
| 1193 | + |
| 1194 | + .agent-chat__suggestion { |
| 1195 | + min-height: 44px; |
| 1196 | + } |
1126 | 1197 | } |
1127 | 1198 |
|
1128 | 1199 | @media (max-width: 640px) { |
|
1161 | 1232 | .chat-controls__model { |
1162 | 1233 | min-width: 150px; |
1163 | 1234 | } |
| 1235 | + |
| 1236 | + .chat-bubble.has-copy { |
| 1237 | + padding-top: 34px; |
| 1238 | + padding-right: 12px; |
| 1239 | + } |
1164 | 1240 | } |
1165 | 1241 |
|
1166 | 1242 | /* Chat loading skeleton */ |
|
1177 | 1253 | justify-content: center; |
1178 | 1254 | text-align: center; |
1179 | 1255 | gap: 12px; |
1180 | | - padding: 48px 24px; |
| 1256 | + width: min(100%, 560px); |
| 1257 | + margin: auto; |
| 1258 | + padding: clamp(28px, 6vh, 56px) 24px; |
1181 | 1259 | flex: 1; |
1182 | 1260 | min-height: 0; |
1183 | 1261 | } |
|
1266 | 1344 | } |
1267 | 1345 |
|
1268 | 1346 | .agent-chat__suggestions { |
1269 | | - display: flex; |
1270 | | - flex-wrap: wrap; |
| 1347 | + display: grid; |
| 1348 | + grid-template-columns: repeat(2, minmax(0, 1fr)); |
1271 | 1349 | gap: 8px; |
1272 | | - justify-content: center; |
1273 | | - max-width: 480px; |
| 1350 | + width: min(100%, 480px); |
1274 | 1351 | margin-top: 8px; |
1275 | 1352 | } |
1276 | 1353 |
|
1277 | 1354 | .agent-chat__suggestion { |
| 1355 | + min-height: 40px; |
1278 | 1356 | font-size: 13px; |
1279 | 1357 | padding: 8px 16px; |
1280 | | - border-radius: var(--radius-full); |
| 1358 | + border-radius: var(--radius-md); |
1281 | 1359 | border: 1px solid var(--border); |
1282 | 1360 | background: var(--panel); |
1283 | 1361 | color: var(--foreground); |
|
0 commit comments