fix: SQLite boolean binding, CSS brace, race condition, 0 npm vulns, code-splitting
This commit is contained in:
+206
-4
@@ -318,6 +318,7 @@ a:hover { text-decoration: underline; }
|
||||
}
|
||||
.hamburger-btn:hover { background: var(--color-surface-2); }
|
||||
.hamburger-btn svg { width: 20px; height: 20px; }
|
||||
.mobile-drawer-toggle { display: none; }
|
||||
|
||||
/* Right vertical tab bar (mobile only, HIDDEN by default on desktop) */
|
||||
.right-tab-bar { display: none; }
|
||||
@@ -1195,7 +1196,8 @@ a:hover { text-decoration: underline; }
|
||||
|
||||
/* Topbar: hamburger left, project center, notifications right */
|
||||
.hamburger-btn { display: flex; }
|
||||
.app-name, .saved-badge, .lang-select, .topbar > .topbar-right > *:not(.hamburger-btn):not(.icon-btn-top[aria-label="Benachrichtigungen"]):not(.avatar) {
|
||||
.mobile-drawer-toggle { display: flex; }
|
||||
.app-name, .saved-badge, .lang-select, .topbar > .topbar-right > *:not(.hamburger-btn):not(.mobile-drawer-toggle):not(.icon-btn-top[aria-label="Benachrichtigungen"]):not(.avatar) {
|
||||
display: none;
|
||||
}
|
||||
.topbar { padding: 0 8px; gap: 6px; }
|
||||
@@ -1236,9 +1238,63 @@ a:hover { text-decoration: underline; }
|
||||
|
||||
/* Main area: NO left/right desktop columns, canvas + right tab bar */
|
||||
.app-body {
|
||||
grid-template-columns: 1fr var(--mobile-right-tab-w);
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.leftbar, .rightbar { display: none; }
|
||||
/* Sidebars become slide-in overlays on mobile */
|
||||
.leftbar, .rightbar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: var(--drawer-w);
|
||||
max-width: 88vw;
|
||||
background: var(--color-surface);
|
||||
box-shadow: var(--shadow-drawer);
|
||||
transition: transform var(--t-drawer);
|
||||
will-change: transform;
|
||||
}
|
||||
.leftbar {
|
||||
left: 0;
|
||||
transform: translateX(-100%);
|
||||
border-right: 1px solid var(--color-border);
|
||||
}
|
||||
.rightbar {
|
||||
right: 0;
|
||||
transform: translateX(100%);
|
||||
border-left: 1px solid var(--color-border);
|
||||
width: var(--drawer-w);
|
||||
}
|
||||
.leftbar.open { transform: translateX(0); }
|
||||
.rightbar.open { transform: translateX(0); }
|
||||
/* Hide empty MobileDrawers overlays — real sidebars are used as slide-in overlays */
|
||||
.drawer { display: none !important; }
|
||||
body.drawer-open { overflow: auto !important; }
|
||||
/* Mobile sidebars: scrollable content, visible labels */
|
||||
.leftbar { overflow-y: auto; -webkit-overflow-scrolling: touch; }
|
||||
.leftbar-toggle { display: grid !important; }
|
||||
.rightbar-close { display: grid !important; }
|
||||
.rightbar-close {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
left: 6px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
color: var(--color-text);
|
||||
cursor: pointer;
|
||||
z-index: 10;
|
||||
}
|
||||
.rightbar-close svg { width: 18px; height: 18px; }
|
||||
.rightbar-close:hover { background: var(--color-surface-3); }
|
||||
.leftbar-title { display: block; }
|
||||
.tool-section-label { display: block; padding: 0 6px 6px; }
|
||||
.tool-btn-label { display: block; }
|
||||
.tool-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
|
||||
.rightbar { overflow-y: auto; -webkit-overflow-scrolling: touch; }
|
||||
|
||||
/* Right tab bar (vertical icon bar, ALWAYS visible on mobile) */
|
||||
.right-tab-bar {
|
||||
@@ -1402,7 +1458,7 @@ a:hover { text-decoration: underline; }
|
||||
.status-item.hide-mobile { display: none; }
|
||||
|
||||
/* SVG canvas: ensure it's scrollable/zoomable on touch */
|
||||
.canvas-svg { touch-action: pinch-zoom pan-x pan-y; }
|
||||
.canvas-svg { touch-action: none; }
|
||||
}
|
||||
|
||||
/* Very small screens (<480px) */
|
||||
@@ -2010,3 +2066,149 @@ body.drawer-open { overflow: hidden; }
|
||||
padding: 3px 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
/* ─── Notification Panel ─────────────────────────────── */
|
||||
.dashboard-header-actions { display: flex; align-items: center; gap: 12px; }
|
||||
.notification-panel-wrapper { position: relative; }
|
||||
.notification-bell-btn {
|
||||
position: relative; background: none; border: none; cursor: pointer;
|
||||
color: var(--color-text-muted); padding: 6px; border-radius: 6px; transition: background 0.2s;
|
||||
}
|
||||
.notification-bell-btn:hover { background: var(--color-border); }
|
||||
.notification-badge {
|
||||
position: absolute; top: 0; right: 0; background: var(--color-primary); color: white;
|
||||
font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px;
|
||||
display: flex; align-items: center; justify-content: center; padding: 0 4px;
|
||||
}
|
||||
.notification-dropdown {
|
||||
position: absolute; top: 100%; right: 0; margin-top: 8px; width: 360px;
|
||||
background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 8px;
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 1000; max-height: 480px; overflow-y: auto;
|
||||
}
|
||||
.notification-dropdown-header {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
padding: 12px 16px; border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.notification-dropdown-header h3 { margin: 0; font-size: 14px; font-weight: 600; }
|
||||
.notification-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--color-text-muted); }
|
||||
.notification-loading, .notification-empty { padding: 16px; text-align: center; color: var(--color-text-muted); font-size: 13px; }
|
||||
.notification-list { padding: 4px 0; }
|
||||
.notification-item {
|
||||
display: flex; justify-content: space-between; align-items: flex-start;
|
||||
padding: 10px 16px; border-bottom: 1px solid var(--color-border); gap: 8px;
|
||||
}
|
||||
.notification-item.unread { background: rgba(52, 152, 219, 0.08); }
|
||||
.notification-item-content { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
|
||||
.notification-type-badge {
|
||||
font-size: 10px; text-transform: uppercase; font-weight: 600; color: var(--color-text-muted);
|
||||
padding: 1px 6px; border-radius: 3px; background: var(--color-border); align-self: flex-start;
|
||||
}
|
||||
.notification-type-badge.type-share { color: #2ecc71; background: rgba(46, 204, 113, 0.15); }
|
||||
.notification-type-badge.type-info { color: #3498db; background: rgba(52, 152, 219, 0.15); }
|
||||
.notification-title { font-size: 13px; font-weight: 600; color: var(--color-text); }
|
||||
.notification-message { font-size: 12px; color: var(--color-text-muted); line-height: 1.4; }
|
||||
.notification-time { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
|
||||
.notification-item-actions { display: flex; gap: 4px; flex-shrink: 0; }
|
||||
.notification-action-btn {
|
||||
background: none; border: none; cursor: pointer; padding: 4px;
|
||||
color: var(--color-text-muted); border-radius: 4px; transition: background 0.2s;
|
||||
}
|
||||
.notification-action-btn:hover { background: var(--color-border); }
|
||||
.notification-action-btn.delete:hover { color: #e74c3c; }
|
||||
|
||||
/* ─── Share Dialog ────────────────────────────────────── */
|
||||
.share-dialog-overlay {
|
||||
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
|
||||
background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 2000;
|
||||
}
|
||||
.share-dialog {
|
||||
background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px;
|
||||
width: 440px; max-width: 90vw; max-height: 80vh; overflow-y: auto; box-shadow: 0 16px 48px rgba(0,0,0,0.4);
|
||||
}
|
||||
.share-dialog-header {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
padding: 16px 20px; border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
.share-dialog-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
|
||||
.share-dialog-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--color-text-muted); }
|
||||
.share-dialog-body { padding: 20px; }
|
||||
.share-form { display: flex; gap: 8px; margin-bottom: 16px; }
|
||||
.share-email-input {
|
||||
flex: 1; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 6px;
|
||||
background: var(--color-bg); color: var(--color-text); font-size: 13px;
|
||||
}
|
||||
.share-permission-select {
|
||||
padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 6px;
|
||||
background: var(--color-bg); color: var(--color-text); font-size: 13px;
|
||||
}
|
||||
.share-add-btn {
|
||||
padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer;
|
||||
background: var(--color-primary); color: white; font-size: 13px; font-weight: 600;
|
||||
}
|
||||
.share-add-btn:hover { opacity: 0.9; }
|
||||
.share-error { color: #e74c3c; font-size: 12px; margin: 8px 0; }
|
||||
.share-loading, .share-empty { padding: 16px; text-align: center; color: var(--color-text-muted); font-size: 13px; }
|
||||
.share-list { display: flex; flex-direction: column; gap: 8px; }
|
||||
.share-item {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 6px;
|
||||
}
|
||||
.share-item-info { display: flex; align-items: center; gap: 8px; }
|
||||
.share-email { font-size: 13px; color: var(--color-text); }
|
||||
.share-permission-badge {
|
||||
font-size: 10px; text-transform: uppercase; font-weight: 600; padding: 2px 8px;
|
||||
border-radius: 4px; background: var(--color-border); color: var(--color-text-muted);
|
||||
}
|
||||
.share-remove-btn {
|
||||
background: none; border: none; cursor: pointer; padding: 4px;
|
||||
color: var(--color-text-muted); border-radius: 4px; transition: color 0.2s;
|
||||
}
|
||||
.share-remove-btn:hover { color: #e74c3c; }
|
||||
|
||||
/* ─── Dashboard Share Button ──────────────────────────── */
|
||||
.dashboard-project-actions { display: flex; gap: 6px; }
|
||||
.dashboard-share-btn {
|
||||
padding: 4px 10px; border: 1px solid var(--color-border); border-radius: 4px;
|
||||
background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 12px;
|
||||
}
|
||||
.dashboard-share-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
|
||||
|
||||
|
||||
/* ─── Desktop Sidebar Collapse ─────────────────────────── */
|
||||
.rightbar-collapse-toggle {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 32px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: var(--color-surface-2);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
color: var(--color-text-muted);
|
||||
z-index: 10;
|
||||
transition: all var(--t-fast);
|
||||
}
|
||||
.rightbar-collapse-toggle:hover {
|
||||
background: var(--color-surface-3);
|
||||
color: var(--color-text);
|
||||
}
|
||||
.rightbar-collapse-toggle svg { width: 14px; height: 14px; }
|
||||
|
||||
.app-body.right-collapsed .rightbar { width: 0; min-width: 0; overflow: hidden; border-left: none; }
|
||||
.app-body.right-collapsed .rightbar-tabs,
|
||||
.app-body.right-collapsed .rightbar-content,
|
||||
.app-body.right-collapsed .rightbar-close { display: none; }
|
||||
|
||||
.leftbar-collapsed .tool-section,
|
||||
.leftbar-collapsed .leftbar-title,
|
||||
.leftbar-collapsed .leftbar-footer-btn:not(:first-child) { display: none; }
|
||||
.leftbar-collapsed .leftbar-header { justify-content: center; padding: 4px; border: none; }
|
||||
.leftbar-collapsed .leftbar-toggle svg { transform: rotate(180deg); }
|
||||
|
||||
/* Tree drag & drop indicators */
|
||||
.tree-drag-before { border-top: 2px solid var(--color-primary); }
|
||||
.tree-drag-after { border-bottom: 2px solid var(--color-primary); }
|
||||
.tree-drag-inside { background: var(--color-surface-2); outline: 2px solid var(--color-primary); outline-offset: -2px; }
|
||||
.tree-dragging { opacity: 0.5; }
|
||||
|
||||
Reference in New Issue
Block a user