diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index a518ce32..0d60705b 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 737b6fc1..a97bd5da 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 dfbe77a5..6f7c571f 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 c7969dfe..089d8a26 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 99775f59..e212cf2a 100644 --- a/resources/views/layouts/bundle.blade.php +++ b/resources/views/layouts/bundle.blade.php @@ -23,7 +23,7 @@ - + @stack('styles')