Skip to content

Commit 51d8f23

Browse files
authored
fix: UI settings tweaks (#281)
* fix: Fixed bug modifying the 'DEGIRO' enabled checkbox Also fixed a bug with IBKR setting that was not showing the 'Private Key' value after loading it from file * fix: Fixed scrolling in the settings dialog * fix: Fixed showing multiple "saving" in the settings UI
1 parent 9404f19 commit 51d8f23

File tree

3 files changed

+115
-44
lines changed

3 files changed

+115
-44
lines changed

src/stonks_overwatch/staticfiles/style.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,11 +1731,23 @@ html[style*="--sidebar-immediate-state: sidebar-collapsed"] #sidebar div.px-2.py
17311731
font-family: inherit; /* Inherit from body */
17321732
color: var(--settings-text-color, #000000);
17331733
background: var(--settings-bg-color, transparent);
1734+
display: flex;
1735+
flex-direction: column;
1736+
height: 100%;
1737+
overflow: hidden;
17341738
}
17351739

17361740
/* Ensure settings styles work in modal context */
17371741
.modal-body .settings-content {
17381742
padding: var(--spacing-lg);
1743+
height: 70vh;
1744+
min-height: 400px;
1745+
}
1746+
1747+
.settings-layout {
1748+
flex: 1;
1749+
overflow: hidden;
1750+
min-height: 0;
17391751
}
17401752

17411753
/* Make settings modal wider to accommodate longer labels and form fields */
@@ -1763,10 +1775,15 @@ html[style*="--sidebar-immediate-state: sidebar-collapsed"] #sidebar div.px-2.py
17631775
border-right: 1px solid var(--settings-border-color, #dee2e6);
17641776
padding-right: 1rem;
17651777
margin-right: 1.5rem;
1778+
overflow-y: auto;
1779+
height: 100%;
17661780
}
17671781

17681782
.settings-main {
17691783
flex: 1;
1784+
overflow-y: auto;
1785+
height: 100%;
1786+
padding-right: 0.5rem;
17701787
}
17711788

17721789
.broker-item {

0 commit comments

Comments
 (0)