diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index a518ce327..0d60705be 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -204,10 +204,6 @@ @@ -215,6 +211,12 @@ +
+

BETA FEATURES

+
+ + +
@@ -793,23 +795,15 @@ // todo: more graceful stylesheet change if(this.modes.dark == true) { this.modes.dark = false; - $('link[rel=stylesheet]').remove(); - let head = document.head; - let link = document.createElement("link"); - link.type = "text/css"; - link.rel = "stylesheet"; - link.href = "/css/app.css"; - head.appendChild(link); + $('link[data-stylesheet=dark]').remove(); } else { this.modes.dark = true; - $('link[rel=stylesheet]').remove(); let head = document.head; let link = document.createElement("link"); - link.id = "darkModeSheet"; link.type = "text/css"; link.rel = "stylesheet"; link.href = "/css/appdark.css"; - + link.setAttribute('data-stylesheet','dark'); head.appendChild(link); } window.ls.set('pixelfed-classicui-settings', this.modes); diff --git a/resources/views/layouts/anon.blade.php b/resources/views/layouts/anon.blade.php index 737b6fc17..a97bd5da4 100644 --- a/resources/views/layouts/anon.blade.php +++ b/resources/views/layouts/anon.blade.php @@ -25,7 +25,7 @@ - + @stack('styles') diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index dfbe77a56..6f7c571f7 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -23,7 +23,7 @@ - + @stack('styles') diff --git a/resources/views/layouts/blank.blade.php b/resources/views/layouts/blank.blade.php index c7969dfe0..089d8a261 100644 --- a/resources/views/layouts/blank.blade.php +++ b/resources/views/layouts/blank.blade.php @@ -22,7 +22,7 @@ - + @stack('styles') diff --git a/resources/views/layouts/bundle.blade.php b/resources/views/layouts/bundle.blade.php index 99775f597..e212cf2a2 100644 --- a/resources/views/layouts/bundle.blade.php +++ b/resources/views/layouts/bundle.blade.php @@ -23,7 +23,7 @@ - + @stack('styles')