diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2021-12-12 22:52:48 -0500 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2021-12-12 22:52:48 -0500 |
commit | 86edfed892dbd0e4dc7eaae1f7ea56ac396bc4e5 (patch) | |
tree | d173010f5dd7728b0dede3bfc0a0c94f2cd608dd /src/tuice/element.rs | |
parent | 37b3d235b998cebf864fa31d1f5ee533cf1cc6e7 (diff) |
Fix bug with flex generation, unify flex
Diffstat (limited to 'src/tuice/element.rs')
-rw-r--r-- | src/tuice/element.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tuice/element.rs b/src/tuice/element.rs index f3e55dca..fe859e79 100644 --- a/src/tuice/element.rs +++ b/src/tuice/element.rs @@ -2,8 +2,8 @@ use enum_dispatch::enum_dispatch; use tui::{layout::Rect, Frame}; use super::{ - Block, Bounds, Carousel, Column, Container, DrawContext, Event, LayoutNode, Row, Shortcut, - Size, Status, TextTable, TmpComponent, + Block, Bounds, Carousel, Container, DrawContext, Event, Flex, LayoutNode, Shortcut, Size, + Status, TextTable, TmpComponent, }; /// An [`Element`] is an instantiated [`Component`]. @@ -11,9 +11,8 @@ use super::{ pub enum Element<'a, Message> { Block, Carousel, - Column, Container(Container<'a, Message>), - Row(Row<'a, Message>), + Flex(Flex<'a, Message>), Shortcut, TextTable(TextTable<'a, Message>), } |