|
257 | 257 |
|
258 | 258 | {#if display} |
259 | 259 | <div class="super-debug" style={themeStyle}> |
260 | | - <div |
261 | | - class="super-debug--status {label === '' |
262 | | - ? 'absolute inset-x-0 top-0' |
263 | | - : ''}" |
264 | | - > |
265 | | - <div class="super-debug--label">{label}</div> |
266 | | - {#if status} |
267 | | - <div |
268 | | - class:info={$page.status < 200} |
269 | | - class:success={$page.status >= 200 && $page.status < 300} |
270 | | - class:redirect={$page.status >= 300 && $page.status < 400} |
271 | | - class:error={$page.status >= 400} |
272 | | - > |
273 | | - {$page.status} |
274 | | - </div> |
275 | | - {/if} |
276 | | - </div> |
| 260 | + {#if label || status} |
| 261 | + <div |
| 262 | + class="super-debug--status {label === '' |
| 263 | + ? 'absolute inset-x-0 top-0' |
| 264 | + : ''}" |
| 265 | + > |
| 266 | + <div class="super-debug--label">{label}</div> |
| 267 | + {#if status} |
| 268 | + <div |
| 269 | + class:info={$page.status < 200} |
| 270 | + class:success={$page.status >= 200 && $page.status < 300} |
| 271 | + class:redirect={$page.status >= 300 && $page.status < 400} |
| 272 | + class:error={$page.status >= 400} |
| 273 | + > |
| 274 | + {$page.status} |
| 275 | + </div> |
| 276 | + {/if} |
| 277 | + </div> |
| 278 | + {/if} |
277 | 279 | <pre |
278 | 280 | class="super-debug--pre {label === '' ? 'pt-4' : 'pt-0'}" |
279 | 281 | bind:this={ref}><code class="super-debug--code" |
|
352 | 354 | .super-debug--status { |
353 | 355 | display: flex; |
354 | 356 | padding: 1em; |
| 357 | + padding-bottom: 0; |
355 | 358 | justify-content: space-between; |
356 | 359 | font-family: Inconsolata, Monaco, Consolas, 'Lucida Console', |
357 | 360 | 'Courier New', Courier, monospace; |
|
378 | 381 | .super-debug pre { |
379 | 382 | color: var(--sd-code-default, var(--sd-vscode-code-default, #999)); |
380 | 383 | background-color: var(--_sd-bg-color); |
381 | | - margin-bottom: 0px; |
382 | 384 | font-size: 1em; |
| 385 | + padding: 1em 0 0 1em; |
383 | 386 | } |
384 | 387 |
|
385 | 388 | .info { |
|
455 | 458 | } |
456 | 459 |
|
457 | 460 | .super-debug pre::-webkit-scrollbar-track { |
| 461 | + border-radius: 12px; |
458 | 462 | background-color: var( |
459 | 463 | --sd-sb-track-color, |
460 | 464 | var(--sd-vscode-sb-track-color, hsl(0, 0%, 40%, 0.2)) |
461 | 465 | ); |
462 | 466 | } |
463 | 467 | .super-debug:is(:focus-within, :hover) pre::-webkit-scrollbar-track { |
| 468 | + border-radius: 12px; |
464 | 469 | background-color: var( |
465 | 470 | --sd-sb-track-color-focus, |
466 | 471 | var(--sd-vscode-sb-track-color-focus, hsl(0, 0%, 50%, 0.2)) |
467 | 472 | ); |
468 | 473 | } |
469 | 474 |
|
470 | 475 | .super-debug pre::-webkit-scrollbar-thumb { |
| 476 | + border-radius: 12px; |
471 | 477 | background-color: var( |
472 | 478 | --sd-sb-thumb-color, |
473 | 479 | var(--sd-vscode-sb-thumb-color, hsl(217, 50%, 50%, 0.5)) |
474 | 480 | ); |
475 | 481 | } |
476 | 482 | .super-debug:is(:focus-within, :hover) pre::-webkit-scrollbar-thumb { |
| 483 | + border-radius: 12px; |
477 | 484 | background-color: var( |
478 | 485 | --sd-sb-thumb-color-focus, |
479 | 486 | var(--sd-vscode-sb-thumb-color-focus, hsl(217, 50%, 50%)) |
|
0 commit comments