One-time token wraps inside its box and confirm popovers open under their button
Browse files at this commit4867bd3a246a404c8362fe3092234c87c456e004Parent: c026210- style
- one-time token wraps inside its box and confirm popovers open under their button
2 changed files +20 -9
- style/_browse.scss +6 -8
- style/main.scss +14 -1
style/_browse.scssmodified+6 -8
| @@ -428,7 +428,8 @@ dialog.finder { | |||
| 428 | 428 | ||
| 429 | .confirm-inline { | 429 | .confirm-inline { |
| 430 | display: inline-block; | 430 | display: inline-block; |
| 431 | - position: relative; | 431 | + max-width: 100%; |
| 432 | + vertical-align: top; | ||
| 432 | 433 | ||
| 433 | > summary { | 434 | > summary { |
| 434 | list-style: none; | 435 | list-style: none; |
| @@ -440,14 +441,11 @@ dialog.finder { | |||
| 440 | } | 441 | } |
| 441 | 442 | ||
| 442 | .confirm-pop { | 443 | .confirm-pop { |
| 443 | - // Fixed so the table's scroll container cannot clip it. | 444 | + // In the flow under the summary: it pushes the rows below it down instead of covering them. |
| 444 | - position: fixed; | 445 | + display: block; |
| 445 | - top: 30vh; | ||
| 446 | - left: 50%; | ||
| 447 | - z-index: 50; | ||
| 448 | width: 22rem; | 446 | width: 22rem; |
| 449 | - max-width: calc(100vw - 32px); | 447 | + max-width: 100%; |
| 450 | - transform: translateX(-50%); | 448 | + margin-top: 8px; |
| 451 | padding: 12px; | 449 | padding: 12px; |
| 452 | text-align: left; | 450 | text-align: left; |
| 453 | white-space: normal; | 451 | white-space: normal; |
style/main.scssmodified+14 -1
| @@ -4694,7 +4694,7 @@ $ansi-colours: ( | |||
| 4694 | } | 4694 | } |
| 4695 | 4695 | ||
| 4696 | // The row actions menu: a "..." button that opens a small panel of the actions. Each item is a plain | 4696 | // The row actions menu: a "..." button that opens a small panel of the actions. Each item is a plain |
| 4697 | -// button or a `confirm-inline` summary; the confirm popover is fixed, so the panel does not clip it. | 4697 | +// button or a `confirm-inline` summary; a confirm popover opens in the flow, so the panel grows to hold it. |
| 4698 | .row-menu { | 4698 | .row-menu { |
| 4699 | display: inline-block; | 4699 | display: inline-block; |
| 4700 | position: relative; | 4700 | position: relative; |
| @@ -7077,6 +7077,19 @@ button.ci-job-last { | |||
| 7077 | user-select: all; | 7077 | user-select: all; |
| 7078 | } | 7078 | } |
| 7079 | 7079 | ||
| 7080 | + // The one-time token's <pre>: the box's own frame stays, and the value wraps anywhere inside it. | ||
| 7081 | + pre.code { | ||
| 7082 | + flex: 1 1 auto; | ||
| 7083 | + min-width: 0; | ||
| 7084 | + margin: 0; | ||
| 7085 | + padding: 0; | ||
| 7086 | + border: 0; | ||
| 7087 | + background: none; | ||
| 7088 | + overflow-x: visible; | ||
| 7089 | + white-space: pre-wrap; | ||
| 7090 | + overflow-wrap: anywhere; | ||
| 7091 | + } | ||
| 7092 | + | ||
| 7080 | button { | 7093 | button { |
| 7081 | flex: none; | 7094 | flex: none; |
| 7082 | height: var(--control-h); | 7095 | height: var(--control-h); |