]> Untitled Git - lemmy-ui.git/commitdiff
Moving javascript disabled warning to top.
authorDessalines <tyhou13@gmx.com>
Mon, 14 Sep 2020 15:26:24 +0000 (10:26 -0500)
committerDessalines <tyhou13@gmx.com>
Mon, 14 Sep 2020 15:26:24 +0000 (10:26 -0500)
src/server/index.tsx
src/shared/services/UserService.ts
src/shared/utils.ts

index ce89a7fa8e9915ff635de5d48f6a00f53489f82f..1c04ed5d61dc2dfc07be4e4a370ff65daa2644b5 100644 (file)
@@ -99,9 +99,9 @@ server.get('/*', async (req, res) => {
 
            <body ${helmet.bodyAttributes.toString()}>
              <noscript>
-               <nav class="navbar fixed-bottom navbar-light bg-light">
-                Javascript is disabled. Actions will not work.
-               </nav>
+               <div class="alert alert-danger rounded-0" role="alert">
+                 Javascript is disabled. Actions will not work.
+               </div>
              </noscript>
             
              <div id='root'>${root}</div>
index 760fb4e4dd8b1d81c1b7cce1034459a41a20d447..72066ad4778686943d4d0fb61092ff779bc686a9 100644 (file)
@@ -1,7 +1,6 @@
 // import Cookies from 'js-cookie';
 import IsomorphicCookie from 'isomorphic-cookie';
 import { User, LoginResponse } from 'lemmy-js-client';
-import { setTheme } from '../utils';
 import jwt_decode from 'jwt-decode';
 import { Subject, BehaviorSubject } from 'rxjs';
 
index 79d52adfa0e86808eae68ae9b70ca70fd6bb1931..0e9f3a12b62c362b368fba7f4e58e5d2897b1d24 100644 (file)
@@ -1054,9 +1054,9 @@ function hsl(num: number) {
   return `hsla(${num}, 35%, 50%, 1)`;
 }
 
-function randomHsl() {
-  return `hsla(${Math.random() * 360}, 100%, 50%, 1)`;
-}
+// function randomHsl() {
+//   return `hsla(${Math.random() * 360}, 100%, 50%, 1)`;
+// }
 
 export function previewLines(
   text: string,