Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions desktop-app/resources/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ body {
border-bottom: 1px solid var(--border-color);
padding: 1rem;
transition: background-color 0.3s ease;
position: sticky;
top: 0;
position: relative;
z-index: 100;
flex-shrink: 0;
}

.app-container {
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}

.content-container {
Expand Down
8 changes: 8 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,14 @@ This is a fully client-side application. Your content never leaves your browser
if (btn !== menuBtn) btn.classList.remove('open');
});
menuBtn.classList.toggle('open');
// Position the dropdown relative to the viewport so it escapes the
// overflow scroll container on .tab-list
if (menuBtn.classList.contains('open')) {
var rect = menuBtn.getBoundingClientRect();
dropdown.style.top = (rect.bottom + 4) + 'px';
dropdown.style.right = (window.innerWidth - rect.right) + 'px';
dropdown.style.left = 'auto';
}
});

dropdown.querySelectorAll('.tab-menu-item').forEach(function(actionBtn) {
Expand Down
15 changes: 8 additions & 7 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ body {
border-bottom: 1px solid var(--border-color);
padding: 1rem;
transition: background-color 0.3s ease;
position: sticky;
top: 0;
position: relative;
z-index: 100;
flex-shrink: 0;
}

.app-container {
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}

.content-container {
Expand Down Expand Up @@ -1195,6 +1196,8 @@ a:focus {
padding: 0 4px;
gap: 0;
user-select: none;
position: relative;
z-index: 10;
}

.tab-list {
Expand Down Expand Up @@ -1369,7 +1372,7 @@ a:focus {
font-size: 14px;
font-weight: bold;
letter-spacing: 1px;
opacity: 0;
opacity: 0.65;
flex-shrink: 0;
transition: background-color 0.15s ease, opacity 0.15s ease;
position: relative;
Expand All @@ -1387,15 +1390,13 @@ a:focus {

.tab-menu-dropdown {
display: none;
position: absolute;
top: calc(100% + 4px);
right: 0;
position: fixed;
min-width: 130px;
background-color: var(--header-bg);
border: 1px solid var(--border-color);
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 9999; /* ← Raise this from 1000 to 9999 */
z-index: 99999;
overflow: hidden;
flex-direction: column;
}
Expand Down