iris: add positioned text overflow
This commit is contained in:
1 parent
cb5f11d21a
commit
1f0a7b5f94
22 files changed
+771
-43
No files matched your search
@@ -325,7 +325,7 @@ fn session_row(rsc: &mut StdRsc<Client>, session: &SessionSummary, selected: boo
|
||||
let label = format!("{}\n{}", session.title, session.status);
|
||||
wtext(label)
|
||||
.color(PaintId::WHITE)
|
||||
.wrap(true)
|
||||
.overflow(TextOverflow::Wrap)
|
||||
.pad(10)
|
||||
.width(rest(1))
|
||||
.background(rect(bg))
|
||||
@@ -342,7 +342,7 @@ fn session_row(rsc: &mut StdRsc<Client>, session: &SessionSummary, selected: boo
|
||||
fn placeholder(rsc: &mut StdRsc<Client>, message: &str) -> StrongWidget {
|
||||
wtext(message.to_string())
|
||||
.color(PaintId::WHITE)
|
||||
.wrap(true)
|
||||
.overflow(TextOverflow::Wrap)
|
||||
.pad(16)
|
||||
.add_strong(rsc)
|
||||
.any()
|
||||
|
||||
Reference in new issue
Block a user