BlueGit

ict rusty-teams

fix(ui): symmetric rail padding, 6 px on both sides like the island gaps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-10-12 · 7 weeks ago

Hash
5ba189e113ba05abd94f99c07804e322e16efb8f
Parent
1e619fdf
1 file changed +2 −1
crates/app/src/views/rail.rs +2 −1
@@ -3,6 +3,7 @@ use gpui_kit::component::{tooltip::Tooltip, v_flex};
3 3 use gpui_kit::prelude::FluentBuilder as _;
4 4 use gpui_kit::*;
5 5
6 use super::shell::ISLAND_GAP;
6 7 use super::shortcuts::keys_for_label;
7 8 use super::sidebar::{SidebarTab, SidebarView};
8 9 use super::widgets::icon;
@@ -12,7 +13,7 @@ use crate::format;
12 13 use crate::sidebar_model::{any_unread_channel, unread_chat_count};
13 14 use crate::theme;
14 15
15 pub const RAIL_WIDTH: f32 = 56.;
16 pub const RAIL_WIDTH: f32 = ITEM_WIDTH + 2. * ISLAND_GAP;
16 17 const ITEM_WIDTH: f32 = 48.;
17 18 const ITEM_HEIGHT: f32 = 52.;
18 19 const ICON_SIZE: f32 = 20.;
@@ -3,6 +3,7 @@ use gpui_kit::component::{tooltip::Tooltip, v_flex};
3use gpui_kit::prelude::FluentBuilder as _;
3use gpui_kit::prelude::FluentBuilder as _;
4use gpui_kit::*;
4use gpui_kit::*;
5
5
6use super::shell::ISLAND_GAP;
6use super::shortcuts::keys_for_label;
7use super::shortcuts::keys_for_label;
7use super::sidebar::{SidebarTab, SidebarView};
8use super::sidebar::{SidebarTab, SidebarView};
8use super::widgets::icon;
9use super::widgets::icon;
@@ -12,7 +13,7 @@ use crate::format;
12use crate::sidebar_model::{any_unread_channel, unread_chat_count};
13use crate::sidebar_model::{any_unread_channel, unread_chat_count};
13use crate::theme;
14use crate::theme;
14
15
15pub const RAIL_WIDTH: f32 = 56.;
16pub const RAIL_WIDTH: f32 = ITEM_WIDTH + 2. * ISLAND_GAP;
16const ITEM_WIDTH: f32 = 48.;
17const ITEM_WIDTH: f32 = 48.;
17const ITEM_HEIGHT: f32 = 52.;
18const ITEM_HEIGHT: f32 = 52.;
18const ICON_SIZE: f32 = 20.;
19const ICON_SIZE: f32 = 20.;