mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Fix views inconsistencies
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<meta name="description" content="{{ $meta_description ?? 'Admin panel' }}">
|
||||
|
||||
<!-- Dark Mode - Set via meta tag for CSP compliance -->
|
||||
<meta name="theme-preference" content="{{ auth()->check() ? (auth()->user()->theme_preference ?? 'light') : 'light' }}">
|
||||
<meta name="theme-preference" content="{{ $userTheme }}">
|
||||
|
||||
<!-- TinyMCE API Key -->
|
||||
<meta name="tinymce-api-key" content="{{ config('tinymce.api_key', 'no-api-key') }}">
|
||||
@@ -51,26 +51,18 @@
|
||||
<h1 class="text-lg font-semibold text-gray-200">{{ $page_title ?? 'Admin Dashboard' }}</h1>
|
||||
<div class="flex items-center space-x-4">
|
||||
<button id="theme-toggle" class="bg-gray-700 dark:bg-gray-800 text-gray-100 dark:text-gray-200 px-3 py-2 rounded-lg shadow hover:bg-gray-600 dark:hover:bg-gray-700 transition-all duration-200 flex items-center gap-2 touch-target"
|
||||
title="{{ ucfirst(auth()->check() ? (auth()->user()->theme_preference ?? 'light') : 'light') }} Mode">
|
||||
title="{{ ucfirst($userTheme) }} Mode">
|
||||
<i id="theme-icon" class="fas
|
||||
@if(auth()->check())
|
||||
@if((auth()->user()->theme_preference ?? 'light') === 'dark')
|
||||
fa-moon
|
||||
@elseif((auth()->user()->theme_preference ?? 'light') === 'system')
|
||||
fa-desktop
|
||||
@else
|
||||
fa-sun
|
||||
@endif
|
||||
@if($userTheme === 'dark')
|
||||
fa-moon
|
||||
@elseif($userTheme === 'system')
|
||||
fa-desktop
|
||||
@else
|
||||
fa-sun
|
||||
@endif
|
||||
"></i>
|
||||
<span id="theme-label" class="text-xs font-medium hidden sm:inline">
|
||||
@if(auth()->check())
|
||||
{{ ucfirst(auth()->user()->theme_preference ?? 'light') }}
|
||||
@else
|
||||
Light
|
||||
@endif
|
||||
{{ ucfirst($userTheme) }}
|
||||
</span>
|
||||
</button>
|
||||
<a href="{{ url('/') }}" class="text-gray-300 dark:text-gray-400 hover:text-white transition">
|
||||
|
||||
Reference in New Issue
Block a user