Skip to content

Commit

Permalink
fix(bugs): mobile bug fixes (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jekrimo authored Nov 29, 2023
1 parent bdacacf commit 7ccdad0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions kit/src/elements/textarea/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ sendButton[1].addEventListener("click", (event) => {
textareas[0].value = "";
})

if (textareas[0].style.height === "66px") {
textareas[0].style.height = "22px";
}

function inputListener(e) {
updateHeight(this);
}
Expand Down
3 changes: 3 additions & 0 deletions kit/src/layout/topbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@
overflow: hidden;
}
}
.controls {
display: inherit;
}
2 changes: 1 addition & 1 deletion ui/src/layouts/chats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub fn ChatLayout(cx: Scope) -> Element {
p {id: "overlay-text0", class: "overlay-text"},
p {id: "overlay-text", class: "overlay-text"}
},
if show_slimbar {
if show_slimbar & !is_minimal_view {
cx.render(rsx!(
SlimbarLayout { active: crate::UplinkRoute::ChatLayout{} },
))
Expand Down
5 changes: 5 additions & 0 deletions ui/src/layouts/chats/presentation/welcome/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub fn Welcome(cx: Scope) -> Element {
div {
id: "welcome",
aria_label: "welcome-screen",
class: "welcome-screen",
if state.read().ui.sidebar_hidden && state.read().ui.is_minimal_view() {
rsx!(
Topbar {
Expand All @@ -32,6 +33,8 @@ pub fn Welcome(cx: Scope) -> Element {
}
)
}
div {
class: "welcome-contents",
img {
class: "image",
aria_label: "welcome-image",
Expand All @@ -50,6 +53,8 @@ pub fn Welcome(cx: Scope) -> Element {
router.replace(UplinkRoute::FriendsLayout { });
}
},

}
}
})
}
Expand Down
8 changes: 8 additions & 0 deletions ui/src/layouts/chats/presentation/welcome/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,13 @@
pointer-events: all;
position: absolute;
}
.topbar {
border-bottom: 1px solid var(--border-subtle-color);
}
.welcome-contents {
display: grid;
align-content: center;
justify-items: center;
height: 100%;}
}

0 comments on commit 7ccdad0

Please sign in to comment.