mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
fix(ui): remove the active-pane corner indicator dot (#63)
The focused pane is already distinguished by fading inactive panes (opacity 0.55) when a tab is split, so the corner dot was redundant. The focused flag still drives the fade.
This commit is contained in:
@@ -489,7 +489,6 @@ impl Pane<Entity<TerminalView>> {
|
||||
Pane::Leaf(v) => {
|
||||
let focused = show_focus && v.read(cx).focus_handle.contains_focused(window, cx);
|
||||
// No full border (it reads as a hard rectangle).
|
||||
// The active pane is marked by a small neutral dot in the corner.
|
||||
div()
|
||||
.size_full()
|
||||
.relative()
|
||||
@@ -503,17 +502,6 @@ impl Pane<Entity<TerminalView>> {
|
||||
// the terminal and focuses it.
|
||||
.when(show_focus && !focused, |d| d.opacity(0.55))
|
||||
.child(v.clone())
|
||||
.when(focused, |d| {
|
||||
d.child(
|
||||
div()
|
||||
.absolute()
|
||||
.top(px(5.))
|
||||
.left(px(5.))
|
||||
.size(px(7.))
|
||||
.rounded_full()
|
||||
.bg(cx.theme().blue),
|
||||
)
|
||||
})
|
||||
.into_any_element()
|
||||
}
|
||||
Pane::Split {
|
||||
|
||||
Reference in New Issue
Block a user