|
270 | 270 |
|
271 | 271 | $: variableColumns = $isSmallViewport |
272 | 272 | ? [ |
273 | | - { id: 'key', width: { min: 320, max: 480 } }, |
274 | | - { id: 'value', width: { min: 180, max: 320 } }, |
| 273 | + { id: 'key', width: { min: 380, max: 520 } }, |
| 274 | + { id: 'value', width: { min: 200, max: 320 } }, |
275 | 275 | { id: 'actions', width: 50 } |
276 | 276 | ] |
277 | 277 | : [ |
278 | | - { id: 'key', width: { min: 200, max: 400 } }, |
| 278 | + { id: 'key', width: { min: 280, max: 420 } }, |
279 | 279 | { id: 'value', width: { min: 200, max: 400 } }, |
280 | 280 | { id: 'actions', width: 50 } |
281 | 281 | ]; |
|
301 | 301 | {/if} |
302 | 302 | <svelte:fragment slot="aside"> |
303 | 303 | <Layout.Stack gap="l"> |
304 | | - <Layout.Stack direction="row" gap="s" wrap="wrap"> |
305 | | - <Layout.Stack direction="row" gap="s" wrap="wrap"> |
| 304 | + <Layout.Stack direction="row" gap="s" wrap={$isSmallViewport ? 'wrap' : 'nowrap'}> |
| 305 | + <Layout.Stack direction="row" gap="s" wrap={$isSmallViewport ? 'wrap' : 'nowrap'}> |
306 | 306 | <Button |
307 | 307 | secondary |
308 | 308 | on:mousedown={() => { |
|
358 | 358 | </p> |
359 | 359 | </Alert.Inline> |
360 | 360 | {/if} |
361 | | - <Table.Root columns={variableColumns} let:root> |
| 361 | + <Table.Root class="responsive-table" columns={variableColumns} let:root> |
362 | 362 | <svelte:fragment slot="header" let:root> |
363 | 363 | <Table.Header.Cell column="key" {root}>Key</Table.Header.Cell> |
364 | 364 | <Table.Header.Cell column="value" {root}>Value</Table.Header.Cell> |
|
373 | 373 | ) !== undefined |
374 | 374 | : false} |
375 | 375 |
|
376 | | - <Layout.Stack gap="xxs" alignItems="center" direction="row"> |
| 376 | + <Layout.Stack |
| 377 | + gap="xxs" |
| 378 | + alignItems="center" |
| 379 | + direction="row" |
| 380 | + class="variable-key-cell"> |
377 | 381 | {#if isConflicting && hasConflictOnPage} |
378 | 382 | <span |
379 | 383 | class="icon-exclamation u-color-text-warning" |
|
533 | 537 | <p>Are you sure you want to delete this variable? This action is irreversible.</p> |
534 | 538 | </Confirm> |
535 | 539 | {/if} |
| 540 | + |
| 541 | +<style> |
| 542 | + :global(.variable-key-cell) { |
| 543 | + min-width: 0; |
| 544 | + } |
| 545 | +
|
| 546 | + :global(.variable-key-cell > :last-child) { |
| 547 | + min-width: 0; |
| 548 | + overflow: hidden; |
| 549 | + text-overflow: ellipsis; |
| 550 | + white-space: nowrap; |
| 551 | + } |
| 552 | +</style> |
0 commit comments