Skip to content

feat: add full-width toggle to Settings view - #1505

Open
the-narwhal wants to merge 1 commit into
frappe:masterfrom
the-narwhal:settings-toggle-between-form-and-full-width
Open

feat: add full-width toggle to Settings view#1505
the-narwhal wants to merge 1 commit into
frappe:masterfrom
the-narwhal:settings-toggle-between-form-and-full-width

Conversation

@the-narwhal

@the-narwhal the-narwhal commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Add full-width toggle to Settings view

What
The Settings view was locked to the narrow form-width layout with no way to expand it. This adds the same maximize/minimize toggle button that already exists on journal entry and new entry forms.

How

  • Added a useFullWidth boolean to Settings.vue's data, initialized from the persisted Misc.useFullWidth value in both mounted and activated hooks.
  • Added a toggleWidth method that flips the value and persists it via fyo.singles.Misc?.setAndSync('useFullWidth', value).
  • Wired :use-full-width="useFullWidth" into <FormContainer>.
  • Added the toggle <Button> with the maximize/minimize feather icon to the #header slot, to the left of the existing Save button.

Why
Settings contains a large number of fields across multiple tabs. Full-width mode makes them significantly easier to scan and edit, especially on wider screens. The preference is stored in the shared Misc.useFullWidth singleton, so the chosen layout is respected consistently across all views that support it.

Testing

  • Open Settings — the toggle button appears in the header next to Save.
  • Click the button — the form expands to full width and the icon changes to minimize.
  • Click again — the form returns to narrow mode.
  • Navigate away to a journal entry form — it reflects the same width preference.
  • Reload the app — the last-used width preference is restored in Settings.

Original Settings view without toggle in top right:
Screenshot 2026-04-04 at 6 20 34 PM

Setting view with toggle in Form width:
Screenshot 2026-04-04 at 6 21 04 PM

Setting view with toggle in Full width:
Screenshot 2026-04-04 at 6 21 14 PM

Add the form/full-width toggle button to the Settings page header,
mirroring the existing behavior in CommonForm. Reads and persists
the preference via `Misc.useFullWidth` so the state is shared across
Settings, journal entries, and new entry forms.
@the-narwhal
the-narwhal marked this pull request as ready for review April 4, 2026 22:29
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.

1 participant