Skip to content

Commit 92a758e

Browse files
authored
Merge pull request #219 from ReturnFI/beta
A small but impactful release focused on UI polish
2 parents aa442d1 + 7f38989 commit 92a758e

File tree

3 files changed

+47
-13
lines changed

3 files changed

+47
-13
lines changed

changelog

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
# [1.12.0] - 2025-06-03
1+
# [1.12.1] - 2025-07-09
22

3-
#### ✨ Features & Enhancements
3+
#### ✨ UI Enhancements
44

5-
* 🎨 **UI/UX:** Some **enhancements to the Settings page** with cleaner design and improved interactivity
6-
* 🌐 **New Tabs:** Added **WARP** and **OBFS** management tabs to the settings panel for easier control
7-
* 🔍 **OBFS:**
8-
9-
* Added **OBFS status API endpoint**
10-
* Introduced `--check` flag to the `manage_obfs` CLI tool
11-
* Enabled **status checking** functionality to monitor OBFS state
12-
* 🔧 **normalsub:** Improved `edit_subpath` with **better error handling** and **efficient Caddy reload**
13-
* 📦 **Singbox:** Enhanced **Singbox template configuration** for better maintainability and compatibility
5+
* 📌 **Sticky Sidebar:** Sidebar now stays fixed when scrolling through long pages for easier navigation
6+
* 🃏 **Sticky Headers:** Card headers are now sticky with a sleek **bokeh blur** effect – better usability on settings and user lists
7+
* ⏎ **Login UX:** Pressing **Enter** now submits the login form properly for faster access

core/scripts/webpanel/assets/css/custom.css

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,15 @@ body:not(.dark-mode) #darkModeIcon.fa-sun {
8989

9090
/* --- Sidebar (Using Default Dark AdminLTE Theme) --- */
9191

92-
body:not(.dark-mode) .main-sidebar { background-color: #343a40; }
92+
body:not(.dark-mode) .main-sidebar {
93+
background-color: #343a40;
94+
position: fixed;
95+
top: 0;
96+
left: 0;
97+
width: 250px;
98+
height: 100vh;
99+
z-index: 1050;
100+
}
93101
body:not(.dark-mode) .brand-link {
94102
border-bottom-color: rgba(255, 255, 255, 0.1);
95103
}
@@ -136,6 +144,13 @@ body:not(.dark-mode) .card-header {
136144
border-bottom: 1px solid var(--border-color-light);
137145
padding: 0.75rem 1.25rem;
138146
color: var(--text-dark); /* Ensure header text is dark */
147+
position: sticky;
148+
top: 0;
149+
z-index: 10;
150+
background: rgba(255, 255, 255, 0.75); /* semi-transparent for bokeh */
151+
backdrop-filter: blur(8px);
152+
-webkit-backdrop-filter: blur(8px); /* Safari support */
153+
transition: background 0.3s;
139154
}
140155
body:not(.dark-mode) .card-title {
141156
font-weight: 600;
@@ -280,7 +295,15 @@ body.dark-mode #darkModeIcon.fa-moon {
280295
}
281296

282297
/* Dark Sidebar */
283-
body.dark-mode .main-sidebar { background-color: var(--dark-navy-deep) !important; }
298+
body.dark-mode .main-sidebar {
299+
background-color: var(--dark-navy-deep) !important;
300+
position: fixed;
301+
top: 0;
302+
left: 0;
303+
width: 250px;
304+
height: 100vh;
305+
z-index: 1050;
306+
}
284307
body.dark-mode .brand-link { border-bottom: 1px solid var(--dark-navy-accent) !important; }
285308
body.dark-mode .sidebar .nav-pills .nav-link { color: var(--dark-text-secondary); }
286309
body.dark-mode .sidebar .nav-pills .nav-link.active,
@@ -305,6 +328,12 @@ body.dark-mode .card-header {
305328
border-bottom: 1px solid var(--dark-navy-border) !important;
306329
color: var(--dark-text-primary);
307330
padding: 0.75rem 1.25rem;
331+
position: sticky;
332+
top: 0;
333+
z-index: 10;
334+
backdrop-filter: blur(8px);
335+
-webkit-backdrop-filter: blur(8px); /* Safari support */
336+
transition: background 0.3s;
308337
}
309338
body.dark-mode .card-body { padding: 1.25rem; }
310339

core/scripts/webpanel/templates/login.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@
6666
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
6767
<!-- AdminLTE App -->
6868
<script src="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/3.2.0/js/adminlte.min.js"></script>
69+
<script>
70+
document.addEventListener('keydown', function(event) {
71+
if (event.key === 'Enter') {
72+
const form = document.querySelector('form[action]');
73+
if (form) {
74+
event.preventDefault();
75+
form.submit();
76+
}
77+
}
78+
});
79+
</script>
6980
</body>
7081

7182
</html>

0 commit comments

Comments
 (0)