Skip to content

[stable8] fix(NcModal): properly handle modal name size#8268

Merged
susnux merged 1 commit into
stable8from
backport/8263/stable8
Mar 4, 2026
Merged

[stable8] fix(NcModal): properly handle modal name size#8268
susnux merged 1 commit into
stable8from
backport/8263/stable8

Conversation

@backportbot

@backportbot backportbot Bot commented Mar 2, 2026

Copy link
Copy Markdown

Backport of #8263

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot Bot requested review from Antreesy, susnux and szaimen March 2, 2026 14:53
@backportbot backportbot Bot added bug Something isn't working 3. to review Waiting for reviews feature: modal Related to the modal component labels Mar 2, 2026
@backportbot backportbot Bot added this to the 8.36.1 milestone Mar 2, 2026
@susnux susnux force-pushed the backport/8263/stable8 branch from 9d1b165 to 7b3909e Compare March 2, 2026 15:00
- When the width is small the name must be ellipsed and not overflow any
  action (e.g. the play buttton!).
- The name must be centered if wide enough (it was not because padding
  was incorrectly calculated).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the backport/8263/stable8 branch from 7b3909e to 0f41f5f Compare March 2, 2026 15:17
@susnux susnux marked this pull request as ready for review March 2, 2026 15:21
Comment on lines +689 to +701
showCloseButton() {
if (this.noClose) {
return false
}
return this.canClose
},

isCloseButtonOutside() {
if (this.closeButtonOutside) {
return true
}
return !this.closeButtonContained
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In stable8 there was a small other bug where the logic did not trigger if you set closeButtonOutside it was not shown outside otherwise

@codecov

codecov Bot commented Mar 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.69%. Comparing base (b4bd936) to head (0f41f5f).
⚠️ Report is 4 commits behind head on stable8.

Additional details and impacted files
@@             Coverage Diff             @@
##           stable8    #8268      +/-   ##
===========================================
- Coverage    45.74%   45.69%   -0.05%     
===========================================
  Files          193      193              
  Lines         4864     4878      +14     
  Branches      1254     1197      -57     
===========================================
+ Hits          2225     2229       +4     
- Misses        2551     2563      +12     
+ Partials        88       86       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@susnux susnux requested a review from cristianscheid March 3, 2026 01:06
@susnux susnux merged commit 4be5371 into stable8 Mar 4, 2026
23 of 24 checks passed
@susnux susnux deleted the backport/8263/stable8 branch March 4, 2026 12:57
@susnux susnux mentioned this pull request Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feature: modal Related to the modal component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants