Skip to content

Start the Recent list closed and stop its caret spinning - #113

Merged
m4rocks merged 1 commit into
mainfrom
recent-starts-collapsed
Nov 16, 2026
Merged

m4rocks merged 1 commit into
mainfrom
recent-starts-collapsed

Conversation

@m4rocks

@m4rocks m4rocks commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Opening or closing the Recent list in the sidebar spun its caret about 14 times. The list also started open, and you want it closed.

Fix

  • Rune's rotate takes radians, and the caret was given 90.0. It now turns FRAC_PI_2, a quarter.
  • The layout stores recent_open, which defaults to false, in place of recent_closed. Recent starts closed, including for anyone updating, since the old key is no longer read.

Proof

the_recent_list_stays_short_and_draws_rows_where_scrolling_brings_them now checks that the list starts closed, that the header opens it, and that the caret's presented rotation is a quarter turn. Before the fix it failed with "the caret turns a quarter, not 90 radians". With the fix, cargo test passes 460 tests and clippy reports nothing in the changed files.

Risk

Small. Someone who left Recent open in 0.9.6 finds it closed once after updating.

Rune's rotate takes radians, so rotate(90.0) spun the caret about 14 turns on every toggle. The list now starts closed: the layout stores recent_open, which defaults to false.
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
claudiu Ready Ready Preview Nov 16, 2026 10:16pm UTC

@m4rocks
m4rocks merged commit 201401b into main Nov 16, 2026
5 checks passed
@m4rocks
m4rocks deleted the recent-starts-collapsed branch November 16, 2026 22:25

This branch was successfully deployed

1 active deployment
Preview — 701229cf Deployed Nov 16, 2026 by vercel[bot]
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