From 9e290c8d3459f9018abf85867a040801f3357a29 Mon Sep 17 00:00:00 2001 From: ankitsejwal Date: Sun, 23 Nov 2025 22:14:28 +0530 Subject: [PATCH] feat: add parameter overlay toggle button with responsive behavior - Add toggle button in header to show/hide parameter overlay - Persist toggle state in localStorage - Automatically hide overlay when window width < 1400px - Position toggle button to avoid overlap with connection buttons - Only show toggle on Query tab when parameters are present ref #28 --- CHANGELOG.md | 18 ++++++- static/css/app.css | 20 +++++++- static/index.html | 6 +++ static/js/app.js | 115 ++++++++++++++++++++++++++++++++++++++++----- 4 files changed, 146 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af71851a6..07f0b6701 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,22 @@ ## Changelog -Current [release](https://github.com/flowbi/pgweb/releases) is `0.16.14`. +Current [release](https://github.com/flowbi/pgweb/releases) is `0.16.17`. + +## 0.16.17 - 2025-11-23 + +- `NEW` Add parameter overlay toggle button with localStorage persistence and responsive behavior +- `NEW` Toggle automatically hides overlay when window width < 1400px +- `FIX` Parameter overlay toggle button positioned to avoid overlap with connection buttons + +## 0.16.16 - 2025-11-23 + +- `FIX` Unwanted gap between cursor and typed character in ACE editor + +## 0.16.15 - 2025-11-23 + +- `NEW` Enhance development script and documentation for PostgreSQL setup +- `FIX` Issue with custom fonts +- `FIX` Docker compose file name and command in development script ## 0.16.14 - 2025-09-01 diff --git a/static/css/app.css b/static/css/app.css index dd4cc3650..7f9adda0b 100644 --- a/static/css/app.css +++ b/static/css/app.css @@ -749,18 +749,36 @@ body, html { } .connection-actions { - position: fixed; + position: absolute; + right: 8px; + top: 10px; + display: none; +} + +.parameter-toggle-action { + position: absolute; right: 8px; top: 10px; display: none; } +/* When both are visible, shift parameter toggle to the left */ +.connection-actions:not([style*="display: none"]) ~ .parameter-toggle-action { + right: 200px; +} + #edit_connection, #close_connection { background: var(--pgweb-primary-color); color: var(--pgweb-primary-text); border-color: var(--pgweb-primary-text); } +#toggle_param_overlay { + background: var(--pgweb-primary-color); + color: var(--pgweb-primary-text); + border-color: var(--pgweb-primary-text); +} + #edit_connection i { margin-right: 4px; } diff --git a/static/index.html b/static/index.html index 234a4ec22..4fe15e8f8 100644 --- a/static/index.html +++ b/static/index.html @@ -40,6 +40,12 @@ Connect Disconnect + +
+ + + +