💥 eww(bar): fix window widget overflow with cjk chars
This commit is contained in:
+3
-3
@@ -143,15 +143,15 @@
|
|||||||
|
|
||||||
& > box.info {
|
& > box.info {
|
||||||
& > label.window-class {
|
& > label.window-class {
|
||||||
font-size: 10px;
|
font-size: 9.8px;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
color: darken($color: $foreground, $amount: 20);
|
color: darken($color: $foreground, $amount: 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
& > label.window-title {
|
& > label.window-title {
|
||||||
margin-top: -2px;
|
font-size: 12px;
|
||||||
font-size: inherit;
|
|
||||||
color: $foreground;
|
color: $foreground;
|
||||||
|
margin-top: -3px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
(defwidget window []
|
(defwidget window []
|
||||||
(box :class "window"
|
(box :class "window"
|
||||||
:visible { active_window.class == "" || active_window.class == "null" ? false : true }
|
:visible { active_window.class == "" || active_window.class == "null" ? false : true }
|
||||||
:vexpand false
|
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:orientation "horizontal"
|
:orientation "horizontal"
|
||||||
|
|
||||||
@@ -15,13 +14,15 @@
|
|||||||
:space-evenly false
|
:space-evenly false
|
||||||
(label :class "window-class"
|
(label :class "window-class"
|
||||||
:text "${active_window.class}"
|
:text "${active_window.class}"
|
||||||
:xalign 0)
|
:xalign 0
|
||||||
|
:yalign 0)
|
||||||
(label :class "window-title"
|
(label :class "window-title"
|
||||||
:text "${active_window.title}"
|
:text "${active_window.title}"
|
||||||
:visible { active_window.title != "" ? true : false }
|
:visible { active_window.title != "" ? true : false }
|
||||||
:limit-width 45
|
:limit-width 45
|
||||||
:tooltip "${active_window.title}"
|
:tooltip "${active_window.title}"
|
||||||
:xalign 0)
|
:xalign 0
|
||||||
|
:yalign 0)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user