Skip to content

nmc/6665-new-button-not-responsive - #503

Merged
memurats merged 1 commit into
stable33from
nmc/6665-new-button-not-responsive
Sep 15, 2026
Merged

memurats merged 1 commit into
stable33from
nmc/6665-new-button-not-responsive

Conversation

@suet-kei-chan

Copy link
Copy Markdown
Contributor

NC33 renders the files list upload button as a direct child of .files-list__header, so the production styling in ncbreadcrumb.scss, scoped to .breadcrumb__actions, stopped applying. Relabel the button from "New" to "Add" and reapply the magenta pill styling in files.scss.

Below 512px NC Teleports the button into as a bottom-corner FAB, where the fixed Telekom footer (z-index 998, 61-89px tall) covered it completely, leaving it invisible and unclickable at every width from 320px to 511px. Pin the teleported element back onto the header row beside the grid-view button as a 40px plus-only circle, matching production. Overriding NC requires the same logical properties and a selector that out-specifies its per-build data-v hash, plus !important to beat its own !important on icon-only button sizing.

Also:

  • Drop the hardcoded 82.15px width so the button sizes intrinsically. The fixed width clipped the German label, which needs 130px.
  • Add a :focus-visible outline, since all: unset strips the one button-vue provides.
  • Use margin-inline-end over margin-right and remove declarations made redundant by all: unset.
  • Replace the two single-shot MutationObservers with one document-level observer so the label survives Vue re-renders on navigation.

Verified at 320/360/390/414/480/511px: aligned with the grid-view button, 40x40, 16px gap, unobstructed. Desktop rendering unchanged.

NC33 renders the files list upload button as a direct child of
.files-list__header, so the production styling in ncbreadcrumb.scss,
scoped to .breadcrumb__actions, stopped applying. Relabel the button
from "New" to "Add" and reapply the magenta pill styling in files.scss.

Below 512px NC Teleports the button into <body> as a bottom-corner FAB,
where the fixed Telekom footer (z-index 998, 61-89px tall) covered it
completely, leaving it invisible and unclickable at every width from
320px to 511px. Pin the teleported element back onto the header row
beside the grid-view button as a 40px plus-only circle, matching
production. Overriding NC requires the same logical properties and a
selector that out-specifies its per-build data-v hash, plus !important
to beat its own !important on icon-only button sizing.

Also:
- Drop the hardcoded 82.15px width so the button sizes intrinsically.
  The fixed width clipped the German label, which needs 130px.
- Add a :focus-visible outline, since all: unset strips the one
  button-vue provides.
- Use margin-inline-end over margin-right and remove declarations made
  redundant by all: unset.
- Replace the two single-shot MutationObservers with one document-level
  observer so the label survives Vue re-renders on navigation.

Verified at 320/360/390/414/480/511px: aligned with the grid-view
button, 40x40, 16px gap, unobstructed. Desktop rendering unchanged.
@suet-kei-chan suet-kei-chan self-assigned this Sep 14, 2026
@suet-kei-chan suet-kei-chan changed the title fix: restore Add button styling and make it responsive on mobile nmc/6665-new-button-not-responsive Sep 14, 2026
@memurats
memurats merged commit dca18cc into stable33 Sep 15, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants