-
Notifications
You must be signed in to change notification settings - Fork 27
Fix: [BUG] [v1.1.0] Auxiliary sidebar: same view icon size differs between activity rail and header #39610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix: [BUG] [v1.1.0] Auxiliary sidebar: same view icon size differs between activity rail and header #39610
Changes from all commits
59e976c
34917e8
c6537da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -46,6 +46,8 @@ fn parse_stats(data: &Value) -> StatsData { | |||
| } | ||||
| } | ||||
|
|
||||
| const ICON_SIZE: u16 = 14; | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This constant isn’t consumed anywhere in Suggested minimal cleanup-const ICON_SIZE: u16 = 14;📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||
|
|
||||
| fn stat_block<'a>(label: &'a str, value: u64, color: Color) -> Paragraph<'a> { | ||||
| let text = vec![ | ||||
| Line::from(Span::styled( | ||||
|
|
@@ -152,4 +154,4 @@ pub async fn run(rpc_url: &str) -> Result<()> { | |||
|
|
||||
| super::restore_terminal(&mut terminal)?; | ||||
| Ok(()) | ||||
| } | ||||
| } | ||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Local
ICON_SIZEis unused and creates another source of truth.Right now this constant is not used in
leaderboard.rs, so it doesn’t enforce the sizing fix and can drift from other modules. Prefer consuming one shared definition (or remove this local constant).🤖 Prompt for AI Agents