]> Untitled Git - lemmy.git/commitdiff
Fixing envelope icon.
authorDessalines <tyhou13@gmx.com>
Sat, 20 Apr 2019 22:49:23 +0000 (15:49 -0700)
committerDessalines <tyhou13@gmx.com>
Sat, 20 Apr 2019 22:49:23 +0000 (15:49 -0700)
- Fixes #90

ui/src/components/navbar.tsx
ui/src/components/symbols.tsx
ui/src/css/main.css

index 5fc6ed7e9629f525cdfde6615e209358d6a32e9c..67a9866ac35dcdb4d239022703588e40fe68c5d1 100644 (file)
@@ -69,12 +69,13 @@ export class Navbar extends Component<any, NavbarState> {
             {this.state.isLoggedIn ? 
             <>
               {
-              <li className="nav-item">
-                <Link class="nav-link" to="/inbox">🖂 
-                  {this.state.unreadCount> 0 && <span class="ml-1 badge badge-light">{this.state.unreadCount}</span>}
-                </Link>
-              </li>
-            }
+                <li className="nav-item">
+                  <Link class="inbox nav-link" to="/inbox">
+                    <svg class="icon"><use xlinkHref="#icon-mail"></use></svg>
+                    {this.state.unreadCount> 0 && <span class="ml-1 badge badge-light">{this.state.unreadCount}</span>}
+                  </Link>
+                </li>
+              }
               <li className={`nav-item dropdown ${this.state.expandUserDropdown && 'show'}`}>
                 <a class="pointer nav-link dropdown-toggle" onClick={linkEvent(this, this.expandUserDropdown)} role="button">
                   {UserService.Instance.user.username}
index 4f757dbbfa5005ef54febecb8ef1b0897ca57c42..e038b13c1b14c340dc7b6c300b249b2334648c20 100644 (file)
@@ -10,6 +10,10 @@ export class Symbols extends Component<any, any> {
     return (
       <svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
         <defs>
+          <symbol id="icon-mail" viewBox="0 0 32 32">
+            <title>mail</title>
+            <path d="M28 5h-24c-2.209 0-4 1.792-4 4v13c0 2.209 1.791 4 4 4h24c2.209 0 4-1.791 4-4v-13c0-2.208-1.791-4-4-4zM2 10.25l6.999 5.25-6.999 5.25v-10.5zM30 22c0 1.104-0.898 2-2 2h-24c-1.103 0-2-0.896-2-2l7.832-5.875 4.368 3.277c0.533 0.398 1.166 0.6 1.8 0.6 0.633 0 1.266-0.201 1.799-0.6l4.369-3.277 7.832 5.875zM30 20.75l-7-5.25 7-5.25v10.5zM17.199 18.602c-0.349 0.262-0.763 0.4-1.199 0.4s-0.851-0.139-1.2-0.4l-12.8-9.602c0-1.103 0.897-2 2-2h24c1.102 0 2 0.897 2 2l-12.801 9.602z"></path>
+          </symbol>         
           <symbol id="icon-mouse" version="1.1" x="0px" y="0px"
             viewBox="0 0 512 512">
             <g>
index 3b74357d56013d4d899ab000664b4b8a23b84c7b..da118490e3649c7bb760f2b1e98240313d8ff5d0 100644 (file)
@@ -83,9 +83,7 @@ blockquote {
   padding: 0.1em 5px;
 }
 
-.badge-notify{
-   /* background:red; */
-   position:relative;
-   top: -20px;
-   left: -35px;
+.inbox {
+  margin-top: 6px;
 }
+