panel: Fix toggle button border overlap with first tab. (#446)

<img width="202" alt="image"
src="https://github.com/user-attachments/assets/ab7b9865-52be-4bdb-bade-9b0c47e83bb7">
This commit is contained in:
Jason Lee 2024-11-27 23:00:25 +08:00 committed by GitHub
parent 36dcc53824
commit a941c7b32e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -534,7 +534,8 @@ impl TabPanel {
h_flex()
.items_center()
.top_0()
.right_0()
// Right -1 for avoid border overlap with the first tab
.right(-px(1.))
.border_r_1()
.border_b_1()
.h_full()