Skip to content

fix(ui): size the upload drop zone with a utility instead of a global style block - #1304

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/upload-dropzone-width
Nov 23, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
fix/upload-dropzone-width

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

The upload drop zone on the file browser had to be stretched to the full width, because the upload library ships its own unstyled-layer CSS that wins over our utilities. A global <style> block with display: block !important worked around that. The drop zone now gets w-full, which works on the library's inline-block as well, so the global block, its !important and the two style gate baseline entries are removed. Implements decision 291 (migrate-content-to-components task 6.12).

Type of change

  • fix - bug fix

How was this tested?

  • New class-level test: the drop zone keeps w-full (red before the change, green after)
  • npm run eslint, npm run typecheck, vitest on FileUpload, src/anchors and src/style-gate
  • Visible check: drop zone should stay full width, hence the ci:e2e label

Checklist

  • Commit messages follow the Conventional Commits convention
  • Tests cover the change
  • ./gradlew build passes locally (frontend-only change, frontend checks run instead)
  • Documentation and configuration samples are updated if the change is user-facing (not applicable)
  • Existing copyright headers are preserved
  • No credentials, tokens or personal data are included in the diff

… style block

The drop zone rendered by the upload library carries unlayered CSS that
makes it inline-block, which beats layered utilities. A global style
block with an important declaration forced it back to block. A width
utility works on an inline-block as well, so the block and its style
gate baseline entries go away.

Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 23, 2026
@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit b385ada Nov 23, 2026
54 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/upload-dropzone-width branch November 23, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the dashboard end-to-end tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant