This commit is contained in:
2026-08-11 11:05:28 +07:00
parent aabccdf099
commit e77cfe29d9
4 changed files with 9 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M23 12L15.9289 19.0711L14.5147 17.6569L20.1716 12L14.5147 6.34317L15.9289 4.92896L23 12ZM3.82843 12L9.48528 17.6569L8.07107 19.0711L1 12L8.07107 4.92896L9.48528 6.34317L3.82843 12Z"></path></svg>

After

Width:  |  Height:  |  Size: 285 B

+2
View File
@@ -52,6 +52,7 @@ pub enum CustomIconName {
Filter, Filter,
GlobalOn, GlobalOn,
GlobalOff, GlobalOff,
GitClone,
} }
impl IconNamed for CustomIconName { impl IconNamed for CustomIconName {
@@ -61,6 +62,7 @@ impl IconNamed for CustomIconName {
CustomIconName::Filter => "icons/filter.svg", CustomIconName::Filter => "icons/filter.svg",
CustomIconName::GlobalOn => "icons/global-on.svg", CustomIconName::GlobalOn => "icons/global-on.svg",
CustomIconName::GlobalOff => "icons/global-off.svg", CustomIconName::GlobalOff => "icons/global-off.svg",
CustomIconName::GitClone => "icons/git-clone.svg",
} }
.into() .into()
} }
@@ -2,6 +2,7 @@ use std::collections::{HashMap, HashSet};
use std::path::{Component, Path, PathBuf}; use std::path::{Component, Path, PathBuf};
use anyhow::Error; use anyhow::Error;
use assets::CustomIconName;
use gpui::prelude::*; use gpui::prelude::*;
use gpui::{ use gpui::{
App, ClipboardItem, Context, Entity, EventEmitter, FocusHandle, Focusable, Render, App, ClipboardItem, Context, Entity, EventEmitter, FocusHandle, Focusable, Render,
@@ -291,6 +292,7 @@ impl Render for RepoDetailView {
.pt_2() .pt_2()
.pb_4() .pb_4()
.w_full() .w_full()
.gap_2()
.items_start() .items_start()
.justify_between() .justify_between()
.border_b_1() .border_b_1()
@@ -302,7 +304,6 @@ impl Render for RepoDetailView {
.child(div().font_semibold().child(name)) .child(div().font_semibold().child(name))
.child( .child(
div() div()
.w_full()
.text_xs() .text_xs()
.text_color(cx.theme().muted_foreground) .text_color(cx.theme().muted_foreground)
.line_clamp(3) .line_clamp(3)
@@ -373,7 +374,7 @@ impl Render for RepoDetailView {
) )
.child( .child(
Button::new("clone") Button::new("clone")
.icon(IconName::ArrowDown) .icon(CustomIconName::GitClone)
.tooltip("Clone") .tooltip("Clone")
.primary(), .primary(),
), ),
@@ -210,6 +210,9 @@ impl Render for SidebarPanel {
.child(NavItem::new("explore", "Browse", IconName::Globe).on_click( .child(NavItem::new("explore", "Browse", IconName::Globe).on_click(
cx.listener(|this, _ev, window, cx| this.open_explore(window, cx)), cx.listener(|this, _ev, window, cx| this.open_explore(window, cx)),
)) ))
.child(NavItem::new("search", "Saerch", IconName::Search).on_click(
cx.listener(|this, _ev, window, cx| this.open_explore(window, cx)),
))
.child( .child(
v_flex().w_full().child( v_flex().w_full().child(
h_flex() h_flex()