ssh: Clean up title bar indicator icon (#19328)
This PR cleans up the custom icon with indicator implementation in favor of `IconWithIndicator`, which we already had. It seems like it isn't super used still, but it's good to try to enforce some consistency either way. I checked my changes against the REPL stuff (one instance where its used) and everything's looking good so far. As far as SSH, nothing has visually changed; we just have less code for this thing now. <img width="800" alt="Screenshot 2024-10-17 at 2 15 47 AM" src="https://github.com/user-attachments/assets/5c146757-501e-4242-b145-a576a8f289b5"> --- Release Notes: - N/A
This commit is contained in:
parent
a41e973782
commit
78093b8e76
2 changed files with 18 additions and 41 deletions
|
@ -473,13 +473,12 @@ impl RenderOnce for IconWithIndicator {
|
|||
this.child(
|
||||
div()
|
||||
.absolute()
|
||||
.w_2()
|
||||
.h_2()
|
||||
.border_1()
|
||||
.size_2p5()
|
||||
.border_2()
|
||||
.border_color(indicator_border_color)
|
||||
.rounded_full()
|
||||
.bottom_neg_0p5()
|
||||
.right_neg_1()
|
||||
.right_neg_0p5()
|
||||
.child(indicator),
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue