diff --git a/src/home/room_screen.rs b/src/home/room_screen.rs index acbf7bc5..1229a174 100644 --- a/src/home/room_screen.rs +++ b/src/home/room_screen.rs @@ -1,7 +1,7 @@ //! A room screen is the UI view that displays a single Room's timeline of events/messages //! along with a message input bar at the bottom. -use std::{borrow::Cow, cell::RefCell, collections::BTreeMap, ops::{DerefMut, Range}, sync::Arc}; +use std::{borrow::Cow, cell::RefCell, collections::{BTreeMap, HashMap}, ops::{DerefMut, Range}, sync::Arc}; use bytesize::ByteSize; use imbl::Vector; @@ -318,6 +318,7 @@ live_design! { edited_indicator = { } tsp_sign_indicator = { } } + content = { width: Fill, height: Fit @@ -379,6 +380,7 @@ live_design! { edited_indicator = { } tsp_sign_indicator = { } } + content = { width: Fill, height: Fit, @@ -441,12 +443,47 @@ live_design! { SmallStateEvent = { width: Fill, height: Fit, - flow: Right, + flow: Down, margin: { top: 4.0, bottom: 4.0} padding: { top: 1.0, bottom: 1.0, right: 10.0 } spacing: 0.0 cursor: Default - + small_state_header = { + width: Fill, + height: Fit + visible: false + padding: { left: 7.0, top: 2.0, bottom: 2.0 } + summary_text =