mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 15:50:36 -05:00
Add dark mode; align table headers with numeric columns
Dark mode: - Theme toggle in the header (System → Light → Dark); "System" follows the OS setting and its changes. The choice is kept per browser and applied before first paint, so there's no light flash. - Implemented by remapping the palette under :root[data-theme=dark]: grays flip, color tints become translucent, dark colored text becomes its light counterpart. Page, surface, header and accent colors are semantic tokens. Native controls follow via color-scheme. - Chart text and grid colors follow the theme. - Public share pages get the toggle too. - Contrast checked against WCAG 4.5:1 (primary button text and error text adjusted for dark). Tables: - Shared table style no longer forces header text left, so right-aligned numeric headers line up with their columns everywhere. - Flight log: units in headers, muted dashes for empty cells, GPS marker beside the route instead of its own column. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5bf682502b
commit
86aadfcf6c
13 files changed
+216
-25
No files matched your search
@@ -3,7 +3,7 @@ class FlightLogsController < ApplicationController
|
||||
before_action :require_owner!, only: :destroy
|
||||
|
||||
def index
|
||||
@flight_logs = @aircraft.flight_logs.recent_first.includes(:user)
|
||||
@flight_logs = @aircraft.flight_logs.recent_first.includes(:user).with_attached_track_log
|
||||
@stats = FlightStats.new(@aircraft)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user