mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
apply caption class
This commit is contained in:
parent
60a2300e03
commit
fbae5dac89
1 changed files with 1 additions and 4 deletions
|
|
@ -16,10 +16,7 @@ impl Gutter {
|
||||||
const MARGIN_X: i32 = 8;
|
const MARGIN_X: i32 = 8;
|
||||||
const MARGIN_Y: i32 = 2;
|
const MARGIN_Y: i32 = 2;
|
||||||
let label = Label::builder()
|
let label = Label::builder()
|
||||||
.css_classes([
|
.css_classes(["caption", "dim-label"])
|
||||||
// "caption",
|
|
||||||
"dim-label",
|
|
||||||
])
|
|
||||||
.ellipsize(EllipsizeMode::Middle)
|
.ellipsize(EllipsizeMode::Middle)
|
||||||
.halign(Align::Start)
|
.halign(Align::Start)
|
||||||
.margin_bottom(MARGIN_Y)
|
.margin_bottom(MARGIN_Y)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue