@youtyan/code-viewer 0.8.8 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/style.css CHANGED
@@ -3766,10 +3766,12 @@ table.d2h-diff-table td.d2h-code-side-linenumber {
3766
3766
  border-radius: 6px;
3767
3767
  }
3768
3768
  .gdp-upload-panel {
3769
- display: flex;
3769
+ /* Grid, not space-between flex: the always-present error node would
3770
+ otherwise take the right edge and strand the button in the middle. */
3771
+ display: grid;
3772
+ grid-template-columns: minmax(0, 1fr) auto;
3770
3773
  align-items: center;
3771
- justify-content: space-between;
3772
- gap: 12px;
3774
+ gap: 6px 12px;
3773
3775
  margin: 12px 14px;
3774
3776
  padding: 10px 14px;
3775
3777
  border: 1px dashed var(--border);
@@ -3789,11 +3791,15 @@ table.d2h-diff-table td.d2h-code-side-linenumber {
3789
3791
  border-color: var(--danger);
3790
3792
  }
3791
3793
  .gdp-upload-error {
3792
- min-height: 18px;
3794
+ /* Second row, full width, so showing an error never shifts the button. */
3795
+ grid-column: 1 / -1;
3793
3796
  color: var(--danger);
3794
3797
  font-size: var(--ui-font-base);
3795
3798
  line-height: 18px;
3796
3799
  }
3800
+ .gdp-upload-error:empty {
3801
+ display: none;
3802
+ }
3797
3803
  .gdp-upload-copy {
3798
3804
  min-width: 0;
3799
3805
  color: var(--fg-muted);