Skip to content

fix(webapp): move ? tooltips after toggle switches in UploadSidebar#734

Merged
camathieu merged 1 commit into
masterfrom
fix/upload-sidebar-tooltip-alignment
Apr 10, 2026
Merged

fix(webapp): move ? tooltips after toggle switches in UploadSidebar#734
camathieu merged 1 commit into
masterfrom
fix/upload-sidebar-tooltip-alignment

Conversation

@camathieu
Copy link
Copy Markdown
Member

@camathieu camathieu commented Apr 8, 2026

Description

What

Restructures the help tooltip layout in the upload settings sidebar to implement the approach proposed in #736: place the ? icon after the toggle switch at the far right of each row, in a consistent fixed column.

Why

The previous implementation placed the ? inline within the text span. This required workarounds (items-start, self-start mt-0.5 on toggles for multi-line rows, inline-flex hacks) and still produced alignment inconsistencies. Moving the ? to the end of the row simplifies the markup, guarantees consistent vertical alignment, and eliminates all the edge-case handling.

Changes

  • UploadSidebar.vue: All 9 setting rows (including the Expiration section header) use a flat flex items-center layout: [svg] [text flex-1] [toggle] [?]. The ? is a direct flex child after the toggle.
  • style.css:
    • setting-help-wrap is now a flex container (display: flex; align-items: center) to eliminate line-height-induced vertical offset between the ? circle and the toggle.
    • setting-tooltip is right-anchored (right: 0) so the tooltip opens leftward and stays within the sidebar. Arrow adjusted to right: 3px.
    • New setting-tooltip-left-anchor variant (left: 0) for tooltips whose ? is not at the far right (e.g. the Expiration section header).
    • Removed the now-unused .setting-help-wrap.inline-flex rule.
  • Locales: Added expirationHelp key to all 12 supported locales, with a new ? tooltip on the EXPIRATION section heading.

Testing

  • Visually verified in French locale (long labels that wrap to 2 lines)
  • Tooltip clipping fixed: right-anchored for toggle rows, left-anchored for section headers
  • All 246 frontend unit tests pass (make test-frontend)
  • Locale parity test passes (57 tests)
  • Production build passes (make frontend)

Closes #736

@camathieu camathieu force-pushed the fix/upload-sidebar-tooltip-alignment branch from 85de427 to 3572592 Compare April 9, 2026 08:05
@camathieu camathieu force-pushed the fix/upload-sidebar-tooltip-alignment branch from 3572592 to e8de5a1 Compare April 10, 2026 13:44
@camathieu camathieu changed the title fix(webapp): anchor help icons inline with label text in UploadSidebar fix(webapp): move ? tooltips after toggle switches in UploadSidebar Apr 10, 2026
@camathieu
Copy link
Copy Markdown
Member Author

docker deploy

Restructures all 9 setting rows in UploadSidebar to use a flat flexbox
layout: [svg] [text flex-1] [toggle] [?] — instead of the previous nested
structure where the help icon was inline within the text span.

The tooltip is now right-aligned (anchored at the ? icon's right edge) to
prevent overflow clipping now that the anchor sits at the sidebar's far right.
A left-anchor variant is provided for the Expiration section header, where
the ? is not at the far right.

Vertical alignment is fixed by making .setting-help-wrap a flex container
(display: flex; align-items: center), eliminating line-height-induced offsets
without needing any mt-* hacks.

An expirationHelp tooltip is also added to the EXPIRATION section heading,
with translations in all 12 supported locales.

Closes #736
@camathieu camathieu force-pushed the fix/upload-sidebar-tooltip-alignment branch from e8de5a1 to ee1d3ab Compare April 10, 2026 14:13
@github-actions
Copy link
Copy Markdown

🚀 Deployment Successful!

The instance at plik.root.gg has been redeployed with image rootgg/plik:pr-734.

@camathieu camathieu merged commit e73b08e into master Apr 10, 2026
8 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.

Setting tooltip should be at fixed position

1 participant