From 6d096ab95a817f308f4ab2e031e9d6e9f4e802ce Mon Sep 17 00:00:00 2001 From: noxware <7684329+noxware@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:31:19 -0300 Subject: [PATCH 1/2] place jump to bottom button on the right --- src/chat/chat_panel.rs | 224 +++++++++++++++++++++-------------------- 1 file changed, 115 insertions(+), 109 deletions(-) diff --git a/src/chat/chat_panel.rs b/src/chat/chat_panel.rs index 9d29fab6..2d9dadbf 100644 --- a/src/chat/chat_panel.rs +++ b/src/chat/chat_panel.rs @@ -157,7 +157,8 @@ live_design! { JumpToButtom = { width: Fill, height: Fill, - align: {x: 0.5, y: 1.0}, + align: {x: 1.0, y: 1.0}, + padding: {bottom: 60}, jump_to_bottom = { width: 34, @@ -252,161 +253,166 @@ live_design! { } ChatPanel = {{ChatPanel}} { - width: Fill, - height: Fill, - margin: {top: 0, left: 20, right: 20, bottom: 20}, - - flow: Overlay, - - no_downloaded_model = { - width: Fill, - height: Fill, + flow: Overlay + width: Fill + height: Fill - flow: Down, - align: {x: 0.5, y: 0.5}, + { + flow: Overlay + width: Fill + height: Fill + padding: {left: 25, right: 25, bottom: 20}, - { + no_downloaded_model = { width: Fill, height: Fill, + flow: Down, - spacing: 30, align: {x: 0.5, y: 0.5}, -