fix(ui): symmetric rail padding, 6 px on both sides like the island gaps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -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};3
use gpui_kit::prelude::FluentBuilder as _;3
use gpui_kit::prelude::FluentBuilder as _;4
use gpui_kit::*;4
use gpui_kit::*;5
5
6
use super::shell::ISLAND_GAP;6
use super::shortcuts::keys_for_label;7
use super::shortcuts::keys_for_label;7
use super::sidebar::{SidebarTab, SidebarView};8
use super::sidebar::{SidebarTab, SidebarView};8
use super::widgets::icon;9
use super::widgets::icon;@@ -12,7 +13,7 @@ use crate::format;12
use crate::sidebar_model::{any_unread_channel, unread_chat_count};13
use crate::sidebar_model::{any_unread_channel, unread_chat_count};13
use crate::theme;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
const ITEM_WIDTH: f32 = 48.;17
const ITEM_WIDTH: f32 = 48.;17
const ITEM_HEIGHT: f32 = 52.;18
const ITEM_HEIGHT: f32 = 52.;18
const ICON_SIZE: f32 = 20.;19
const ICON_SIZE: f32 = 20.;