Skip to content

Commit

Permalink
Fix responsive sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
necipsagiro committed Feb 26, 2024
1 parent 347bbe6 commit 21f322c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ fn delete_node(exception: String) -> Result<(), String> {
unset NODE_PROPERLY_INSTALLED EXECUTE CHAIN_ID PORT DENOM SEEDS PEERS VERSION SYSTEM_FOLDER PROJECT_FOLDER GO_VERSION GENESIS_FILE ADDRBOOK MIN_GAS SEED_MODE REPO MONIKER SNAPSHOT_URL WALLET_NAME""#
),
_ => format!(r#"bash -c -l '
sudo systemctl stop $EXECUTE;
sudo systemctl stop $EXECUTE;
sudo systemctl disable $EXECUTE;
pkill -f $EXECUTE;
if [ -d "/etc/systemd/system/$EXECUTE" ]; then
Expand Down Expand Up @@ -927,7 +927,7 @@ fn main() {
app.get_window("main")
.unwrap()
.set_min_size(Some(Size::Logical(LogicalSize {
width: 800.0,
width: 900.0,
height: 600.0,
})))
.unwrap();
Expand Down
14 changes: 9 additions & 5 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -779,20 +779,24 @@ body.waiting * {
}

@media (max-width: 1140px) {
.all-page-wrapper {
/* .all-page-wrapper {
left: 60px;
width: calc(99vw - 60px);
padding: 80px 45px;
} */
:root {
--sidebar-width: 295px;
}

.all-sidebar-wrapper {
padding: 50px 20px;
padding-right: 0px;
background-color: var(--second-color);
width: 60px;
height: 100%;
}

.all-page-wrapper {
padding: 80px 40px;
}
/*
.sidebar-info {
display: none;
}
Expand All @@ -816,7 +820,7 @@ body.waiting * {
.sidebar-anchors {
display: none;
}
} */
}

.all-page-content {
Expand Down

0 comments on commit 21f322c

Please sign in to comment.