Skip to content

ui(settings): prevent horizontal overflow in shortcut keycaps and add mono fallback #1652

Closed

Description

@ZhuchkaTriplesix

Problem

In lib/features/settings/preferences_shortcuts_section.dart:

  1. In _buildShortcutRow (lines 384–396), keycaps and conjunctions are placed in a non-wrapping material.Row(mainAxisSize: MainAxisSize.min). Certain shortcuts have multiple combinations (allKeys separated by or), or long string labels like 'Double Click Divider' (line 127). On narrower windows or when UI scale is 125%–150%, this causes RenderFlex overflowed by ... pixels on the right.
  2. In _keycaps (lines 431–436), fontFamily: QueryaTypography.mono is passed without fontFamilyFallback: QueryaTypography.monoFontFamilyFallback. Modifier glyphs or non-Latin keys trigger fallback to proportional system fonts.
  3. In _keycaps (line 416), color: theme.colorScheme.background uses the deprecated background token.

Solution

  • Replace material.Row with material.Wrap(crossAxisAlignment: material.WrapCrossAlignment.center, spacing: 4, runSpacing: 4) for the trailing keycaps block.
  • Pass fontFamilyFallback: QueryaTypography.monoFontFamilyFallback.
  • Use context.workbench.cardBackground or theme.colorScheme.surface instead of colorScheme.background.

Activity

  1. added
    bug
    frontend
    settings
    on Oct 17, 2026
  2. ZhuchkaTriplesix commented on Oct 17, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    Closed by PR #1670 into dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrontendsettings

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions