Skip to content

Fix/light dark mode viewport#8

Merged
BandiAkarsh merged 4 commits intomainfrom
fix/light-dark-mode-viewport
Mar 4, 2026
Merged

Fix/light dark mode viewport#8
BandiAkarsh merged 4 commits intomainfrom
fix/light-dark-mode-viewport

Conversation

@BandiAkarsh
Copy link
Owner

No description provided.

BandiAkarsh and others added 4 commits March 1, 2026 16:21
- Add light/dark mode toggle button to dashboard sidebar
- Add sun icon for light mode, moon icon for dark mode
- Add settings button to sidebar
- Fix editor viewport: use 100dvh for dynamic viewport height
- Add CSS to ensure main takes full viewport height

The theme toggle now appears in the dashboard sidebar with sun/moon icons
Add comprehensive security headers to resolve Shannon assessment findings:
- HSTS: Strict-Transport-Security with max-age=31536000; includeSubDomains; preload
- CSP: Content-Security-Policy with SvelteKit-compatible directives
- CORS: Restrict Access-Control-Allow-Origin from wildcard to locanote.pages.dev
- security.txt: Add vulnerability disclosure at /.well-known/security.txt

Fixes:
- CWE-319: Missing HSTS (SSL stripping prevention)
- CWE-693: Missing CSP (XSS mitigation)
- CWE-942: CORS wildcard policy (information disclosure)
- CWE-1059: Missing security.txt (vulnerability reporting)

Additional:
- Add verify-security-fixes.sh script for post-deployment validation
- Update CLOUDFLARE_DEPLOYMENT.md with security configuration docs
- Add SECURITY_FIXES_APPLIED.md with complete remediation details

Risk Level: LOW-MEDIUM → LOW

Refs: Shannon Security Assessment 2026-03-02
- Fix title sync for shared notes: fetch actual title from Yjs instead of hardcoded 'Shared Note'
- Add modern CSS with container queries and viewport units (svh/dvh)
- Implement responsive breakpoints: 640px, 768px, 1024px, 1280px
- Add mobile header with sidebar toggle for note editor
- Improve touch targets to 48px minimum (2026 standard)
- Add enhanced sync status indicator with peer visualization
- Remove unrelated files (install.sh, temp Python scripts)
@BandiAkarsh BandiAkarsh merged commit b676695 into main Mar 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant