Skip to content

Tighten right-sidebar sections#111

Merged
dmnyc merged 1 commit into
masterfrom
polish/sidebar-section-cards
Apr 30, 2026
Merged

Tighten right-sidebar sections#111
dmnyc merged 1 commit into
masterfrom
polish/sidebar-section-cards

Conversation

@dmnyc

@dmnyc dmnyc commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Wrap each right-sidebar block (Live contracts, Highest liquidity, Market states) in a rounded-xl bg-slate-950/45 p-4 card so the sections read as discrete units, matching the stat cards on the left.
  • Add a thin border-b border-slate-800/60 under each section heading.
  • Highest liquidity: drop the redundant 1. rank prefix; render the value as a slate pill (rounded-md bg-slate-800/70) with tabular-nums, whitespace-nowrap, and a muted "BTC" unit so the column never wraps; add an empty-state row mirroring "Live contracts".
  • Market states: hide zero-count rows and the whole section when every state is zero, so the panel doesn't enumerate empty buckets.

Test plan

  • On a category with no live contracts and a single dormant market, confirm Live contracts shows the empty message, Highest liquidity shows one row with a slate pill (no wrap), and Market states shows only the Dormant row.
  • On a busy category, confirm all three cards render with consistent spacing and the dividers under each heading line up.
  • Resize the viewport down to xl breakpoint and verify the value pill stays on a single line and the question text truncates / wraps cleanly.

Wrap each sidebar block (Live contracts, Highest liquidity, Market
states) in a card matching the stat cards on the left so the
sections read as discrete units, and add a thin divider under each
heading. Highest liquidity drops the redundant "1." rank prefix and
puts the liquidity value in a slate pill with tabular numerals,
nowrap, and a muted "BTC" unit so the column never wraps. Market
states now hides zero-count rows (and the whole section if every
state is zero) instead of loudly enumerating empty buckets.
@dmnyc
dmnyc merged commit 76ff873 into master Apr 30, 2026
3 checks passed
@dmnyc
dmnyc deleted the polish/sidebar-section-cards branch April 30, 2026 20:23
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