Skip to content

style(frontend/recs): align cost-period selector inline with toolbar controls - #1118

Merged
cristim merged 1 commit into
feat/multicloud-web-frontendfrom
fix/recs-toolbar-align
Jun 8, 2026
Merged

style(frontend/recs): align cost-period selector inline with toolbar controls#1118
cristim merged 1 commit into
feat/multicloud-web-frontendfrom
fix/recs-toolbar-align

Conversation

@cristim

@cristim cristim commented Jun 8, 2026

Copy link
Copy Markdown
Member

Problem

On the Recommendations toolbar, the "Show costs:" label stacked above the period dropdown instead of sitting on the same line as the count / Expand all / Columns (see issue screenshot).

Cause

.recommendations-filter-status is already display:flex; align-items:center, but .cost-period-selector-wrapper (the span holding the label + <select>) had no CSS. The base select style (forms.css: padding:0.5rem; font-size:0.9rem) is taller than the bar's buttons, so the small label aligned to the select's baseline and rendered above it.

Fix (CSS-only, scoped to the bar)

  • .cost-period-selector-wrapperinline-flex; align-items:center; gap so the label + select are side-by-side, vertically centered.
  • .cost-period-select → match the bar buttons' padding:0.25rem 0.6rem; font-size:0.85em.

Now the count, Expand all, Show costs: and Columns all sit on one line, vertically centered.

CSS-only; no behavior change. The bundle is verified by the "Build frontend" CI check (local build skipped — fresh worktree without node_modules).

…controls

The recommendations filter-status bar is flex/align-center, but the
`.cost-period-selector-wrapper` span had no CSS, so the small "Show costs:"
label aligned to the baseline of the taller base-styled select and appeared
stacked above it. Make the wrapper an inline-flex (label + select vertically
centered) and size the select to match the bar buttons, so the count,
Expand all, "Show costs: <period>" and Columns all sit on one line.
@cristim cristim added triaged Item has been triaged priority/p3 Polish / idea / may never ship severity/low Minor harm urgency/eventually No deadline impact/many Affects most users effort/xs Trivial / one-liner type/chore Maintenance / non-user-visible labels Jun 8, 2026
@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d7656e42-d237-42e4-97af-6f724e6e7a4b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/recs-toolbar-align

Comment @coderabbitai help to get the list of available commands and usage tips.

@cristim
cristim merged commit c7448ca into feat/multicloud-web-frontend Jun 8, 2026
5 checks passed
@cristim
cristim deleted the fix/recs-toolbar-align branch July 27, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/xs Trivial / one-liner impact/many Affects most users priority/p3 Polish / idea / may never ship severity/low Minor harm triaged Item has been triaged type/chore Maintenance / non-user-visible urgency/eventually No deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant