mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 21:58:12 +08:00
Fix Breadcrumb Trail widget pixel misalignment at non-integer UI scaling
This commit is contained in:
@@ -30,17 +30,26 @@
|
|||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
|
|
||||||
&::before {
|
&::before,
|
||||||
|
&::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
|
||||||
left: -4px;
|
left: -4px;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 12px 0 12px 4px;
|
|
||||||
border-color: var(--button-background-color) var(--button-background-color) var(--button-background-color) transparent;
|
border-color: var(--button-background-color) var(--button-background-color) var(--button-background-color) transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
top: 0;
|
||||||
|
border-width: 24px 0 0 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
bottom: 0;
|
||||||
|
border-width: 0 0 24px 8px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(:last-of-type) {
|
&:not(:last-of-type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user