on master help sign in
Fix Grid sizing and reformat conversation list items in ViewConversations
commitebc16eb90b6e434b72feb05dc8be104183320c1e authoriko <mail@iko.soy> dateSun 19 Apr 2026, 14:31 (6 months ago) parent4e3635c
1 file changed+9−7
client/ViewConversations.fs+9−7
client/ViewConversations.fs+9−7
@@ -40,23 +40,25 @@ module ViewConversations =
4040 let preview =
4141 messagesFor c.Pubkey model.Messages
4242 |> List.tryLast
43− |> Option.map (fun m -> if m.Body.Length > 40 then m.Body.[..39] + "..." else m.Body)
43+ |> Option.map (fun m ->
44+ if m.Body.Length > 40 then m.Body.[..39] + "..." else m.Body)
4445 |> Option.defaultValue ""
4546
4647 Border(
4748 (HStack(8.) {
4849
49− Grid() {
50+ (Grid() {
5051 (match c.Photo with
51− | None -> Image("avares://Skrepka/Assets/Images/user.png", Stretch.Uniform)
52+ | None ->
53+ Image("avares://Skrepka/Assets/Images/user.png", Stretch.Uniform)
54+ .margin (8.)
5255 | Some i -> Image(cachedBitmap i, Stretch.UniformToFill))
53− .width(16.)
54− .height(16.)
55− .margin(8.)
5656 .clipToBounds (true)
5757
5858 Rectangle().stroke(Colors.Black).strokeThickness (4.)
59− }
59+ })
60+ .width(40.)
61+ .height (40.)
6062
6163 VStack(2.) {
6264 TextBlock(name)