Skip to content

fix(editor): fit translated labels into the menus - #424

Merged
AndyScherzinger merged 1 commit into
mainfrom
fix/hotbox-label-size
Oct 22, 2026
Merged

AndyScherzinger merged 1 commit into
mainfrom
fix/hotbox-label-size

Conversation

@AndyScherzinger

Copy link
Copy Markdown
Member

Fixes #141
Fixes #160

Right-click menu (#141): the labels of the round buttons were cut off, for example "Arrange Up" showed only as "Arrange" and "Neuer Geschwisterknoten" was clipped at the edge. Bootstrap's generic .label rule (white-space: nowrap and padding) also applies to the hotbox labels. vendor/hotbox/hotbox.css now lets them wrap, breaks long words, uses 12 px instead of 16 px, and centres label and shortcut vertically in the button.

Theme picker (#160): the theme buttons have a fixed size of 110 × 30 px, so longer theme names such as "Kompakt runde Knoten" or "Compact rounded nodes" ran out of the button. A rule in the iframe template now wraps them onto two lines, centred in the button. This follows the existing overrides of the editor stylesheet in templates/viewer.php, so the minified editor CSS stays untouched.

Tested: rendered the buttons in headless Firefox with the iframe's stylesheets (Bootstrap, hotbox and the editor CSS), using English, German and Spanish labels. Before the change, long labels ran past the button edge. After it, every label fits in its button. I have not yet checked it in a running Nextcloud.

A backport to stable-0.1 follows.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

Bootstrap's .label rule keeps the labels of the right-click menu on one
line, so longer labels such as "Arrange Up" or "Neuer Geschwisterknoten"
were cut off at the edge of the round buttons. Let them wrap, break long
words, use a smaller font and centre them in the button.

The theme picker's buttons have a fixed size as well, so wrap theme
names such as "Kompakt runde Knoten" instead of letting them overflow.

Fixes #141
Fixes #160

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger AndyScherzinger added bug Something isn't working AI assisted This PR contains AI-assisted commits labels Oct 21, 2026
@AndyScherzinger AndyScherzinger added this to the v0.2.0 milestone Oct 22, 2026
@AndyScherzinger
AndyScherzinger merged commit 69bd65a into main Oct 22, 2026
8 checks passed
@AndyScherzinger
AndyScherzinger deleted the fix/hotbox-label-size branch October 22, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted This PR contains AI-assisted commits bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

text in menu is cut off in some translations buttons in context submenu too small for text

1 participant