|
153 | 153 | align-items: center; |
154 | 154 | gap: var(--space-sm); |
155 | 155 | padding: var(--space-md) var(--space-lg); |
| 156 | + border-bottom: 2px solid transparent; |
| 157 | + border-radius: inherit; |
| 158 | + transition: border-color var(--duration-fast) var(--ease-out); |
156 | 159 | } |
157 | 160 |
|
158 | 161 | .search-modal__icon { |
|
234 | 237 |
|
235 | 238 | .search-modal__results::-webkit-scrollbar-track { |
236 | 239 | background: transparent; |
| 240 | + margin: 8px 0; |
237 | 241 | } |
238 | 242 |
|
239 | 243 | .search-modal__results::-webkit-scrollbar-thumb { |
240 | 244 | background: var(--color-light-border); |
241 | 245 | border-radius: var(--radius-full); |
| 246 | + background-clip: padding-box; |
242 | 247 | } |
243 | 248 |
|
244 | 249 | .search-modal__results::-webkit-scrollbar-thumb:hover { |
245 | 250 | background: var(--color-gray-base); |
| 251 | + background-clip: padding-box; |
246 | 252 | } |
247 | 253 |
|
248 | 254 | .search-modal__results-list { |
|
375 | 381 |
|
376 | 382 | .search-modal__container { |
377 | 383 | max-width: 100%; |
| 384 | + width: 100%; |
| 385 | + height: auto; |
| 386 | + max-height: calc(100vh - 32px); |
378 | 387 | } |
379 | 388 |
|
380 | 389 | .search-modal__content { |
381 | 390 | border-radius: var(--radius-lg); |
| 391 | + height: auto; |
| 392 | + max-height: calc(100vh - 32px); |
| 393 | + } |
| 394 | + |
| 395 | + /* When results are visible, expand to full height */ |
| 396 | + .search-modal__content:has(.search-modal__results[style*="display: block"]) { |
| 397 | + height: calc(100vh - 32px); |
382 | 398 | } |
383 | 399 |
|
384 | 400 | .search-modal__input-wrapper { |
385 | 401 | padding: var(--space-md) var(--space-lg); |
| 402 | + flex-shrink: 0; |
386 | 403 | } |
387 | 404 |
|
388 | 405 | .search-modal__input { |
389 | 406 | font-size: var(--text-base); |
390 | 407 | } |
391 | 408 |
|
392 | 409 | .search-modal__results { |
393 | | - max-height: 50vh; |
| 410 | + flex: 1; |
| 411 | + max-height: none; |
| 412 | + overflow-y: auto; |
| 413 | + } |
| 414 | + |
| 415 | + .search-modal__results[style*="display: none"] { |
| 416 | + flex: 0; |
| 417 | + display: none; |
394 | 418 | } |
395 | 419 |
|
396 | 420 | .search-results__item { |
|
473 | 497 |
|
474 | 498 | .dark .search-modal__results::-webkit-scrollbar-thumb { |
475 | 499 | background: var(--color-dark-border); |
| 500 | + border: 2px solid transparent; |
| 501 | + background-clip: padding-box; |
476 | 502 | } |
477 | 503 |
|
478 | 504 | .dark .search-modal__results::-webkit-scrollbar-thumb:hover { |
479 | | - background: var(--color-dark-border-subtle); |
| 505 | + background: var(--color-gray-base); |
| 506 | + background-clip: padding-box; |
480 | 507 | } |
481 | 508 |
|
482 | 509 | .dark .search-modal__results-list li.selected .search-results__item { |
|
0 commit comments