Skip to content

Commit 245d104

Browse files
authored
Merge pull request #213 from moxin-org/fix-model-card-title-and-description
Fix intermittent issue with model card title and description labels
2 parents 5c2e446 + d83d181 commit 245d104

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/landing/model_card.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ live_design! {
257257
height: Fit,
258258
padding: {bottom: 20}
259259

260-
model_name = <Label> {
260+
modal_model_name = <Label> {
261261
draw_text: {
262262
text_style: <BOLD_FONT>{font_size: 16},
263263
color: #000
@@ -278,7 +278,7 @@ live_design! {
278278
}
279279
text: "Model Description"
280280
}
281-
model_summary = <Label> {
281+
modal_model_summary = <Label> {
282282
width: Fill,
283283
draw_text:{
284284
text_style: <REGULAR_FONT>{font_size: 9},
@@ -433,10 +433,10 @@ impl Widget for ModelCardViewAllModal {
433433
let model = &scope.data.get::<ModelWithDownloadInfo>().unwrap();
434434

435435
let name = &model.name;
436-
self.label(id!(model_name)).set_text(name);
436+
self.label(id!(modal_model_name)).set_text(name);
437437

438438
let summary = &model.summary;
439-
self.label(id!(model_summary)).set_text(summary);
439+
self.label(id!(modal_model_summary)).set_text(summary);
440440

441441
self.view
442442
.draw_walk(cx, scope, walk.with_abs_pos(DVec2 { x: 0., y: 0. }))

0 commit comments

Comments
 (0)