Skip to content

Commit

Permalink
fix: icon layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Mairon1206 committed Oct 7, 2024
1 parent bc5eeb8 commit d4885f6
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions ui/views/page/detail.slint
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@ component IconText {
HorizontalLayout {
spacing: 5px;
alignment: start;
Image {
source: root.icon;
width: 18px;
horizontal-alignment: center;
vertical-alignment: center;
colorize: Token.color.on-surface;
VerticalLayout {
padding-top: 2.4px;
Image {
source: root.icon;
width: 18px;
horizontal-alignment: center;
vertical-alignment: top;
colorize: Token.color.on-surface;
}
}

Text {
text: root.text;
vertical-alignment: TextVerticalAlignment.center;
vertical-alignment: TextVerticalAlignment.top;
font-size: 16px;
wrap: TextWrap.char-wrap;
}
Expand Down Expand Up @@ -77,7 +80,7 @@ component EventInfoBlock {
alignment: start;
IconText {
icon: Token.image.icon.time;
text: DetailPageBridge.event-model.time;
text: "你好 ";//DetailPageBridge.event-model.time;
}

if DetailPageBridge.event-model.location != "": IconText {
Expand Down

0 comments on commit d4885f6

Please sign in to comment.