Files
todo-baggins/src/components/bottom_panel.rs
Matouš Volf 64389d8c0d
All checks were successful
conventional pull request title check / conventional pull request title check (pull_request) Successful in 5s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 7s
actionlint check / actionlint check (pull_request) Successful in 6s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 9s
GitLeaks check / GitLeaks check (pull_request) Successful in 16s
hadolint check / hadolint check (pull_request) Successful in 20s
htmlhint check / htmlhint check (pull_request) Successful in 1m10s
markdownlint check / markdownlint check (pull_request) Successful in 1m4s
Prettier check / Prettier check (pull_request) Successful in 58s
checkov check / checkov check (pull_request) Successful in 1m58s
ShellCheck check / ShellCheck check (pull_request) Successful in 34s
Stylelint check / Stylelint check (pull_request) Successful in 32s
yamllint check / yamllint check (pull_request) Successful in 29s
Rust check / Rust check (pull_request) Successful in 27m44s
feat: wider screen UI responsivity
2026-02-09 22:10:12 +01:00

25 lines
664 B
Rust

use dioxus::prelude::*;
use crate::components::navigation;
#[component]
pub(crate) fn BottomPanel() -> Element {
let navigation_expanded = use_signal(|| false);
rsx! {
div {
class: format!(
"flex flex-col pointer-events-auto bg-gray-800 transition-[height] duration-[500ms] ease-[cubic-bezier(0.79,0.14,0.15,0.86)] overflow-y-scroll {}",
if navigation_expanded() {
"h-[132px]"
} else {
"h-[66px]"
}
),
navigation::Bottom {
is_expanded: navigation_expanded,
}
}
}
}