From c14b7bf0cc06df2843bf266eeda884f1e94de28b Mon Sep 17 00:00:00 2001 From: Arya Date: Mon, 11 Mar 2024 22:29:09 -0400 Subject: [PATCH] updates crate description & fix btn styles (#25) Co-authored-by: Automated Release Test --- src-tauri/Cargo.toml | 2 +- src/pages/Configure.tsx | 81 ++++++++++++++++++++--------------------- 2 files changed, 40 insertions(+), 43 deletions(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index d9955df..95ef749 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "zebra-app" version = "0.0.0-alpha.0" -description = "A Tauri App" +description = "Zebra App" authors = ["you"] edition = "2021" diff --git a/src/pages/Configure.tsx b/src/pages/Configure.tsx index bc09d22..4d5144e 100644 --- a/src/pages/Configure.tsx +++ b/src/pages/Configure.tsx @@ -21,21 +21,23 @@ const FloatingButtonContainer = styled("div")` padding: 6px 8px 0 0; border-radius: 8px; box-shadow: #1c1c1c 0 0 6px 2px, #1c1c1c 0 0 12px 2px, #1c1c1c 0 0 24px 2px; + + > button { + outline: none; + border: solid 2px white; + color: white; + padding: 8px 14px; + margin: 12px; + border-radius: 8px; + font-size: 14px; + text-transform: uppercase; + cursor: pointer; + letter-spacing: 1px; + background: transparent; + } `; const Button = styled("button")` - outline: none; - border: solid 2px white; - color: white; - padding: 8px 14px; - margin: 12px; - border-radius: 8px; - font-size: 14px; - text-transform: uppercase; - cursor: pointer; - letter-spacing: 1px; - background: transparent; - &:hover { color: #aaa; border-color: #aaa; @@ -114,38 +116,33 @@ const Configuration = () => {

Configuration

{is_editable() ? ( - <> - - set_edited_config(value) - } - /> - + set_edited_config(value)} + /> + ) : ( + {config_contents} + )} + + {is_editable() ? ( + <> - - - ) : ( - <> - {config_contents} - - {is_saving() ? ( - - Saving and restarting Zebra ... - - ) : ( - - )} - - - )} + + ) : is_saving() ? ( + + Saving and restarting Zebra ... + + ) : ( + + )} + ); };