From: Dessalines Date: Sat, 4 Jul 2020 02:00:51 +0000 (-0400) Subject: Adding a search icon, and a faster transition. X-Git-Url: http://these/git/%22https:/join-lemmy.org/%7B%60%24%7BarchiveTodayUrl%7D/static/git-favicon.png?a=commitdiff_plain;h=69df9cecca357989ef4a5c056b67bd252641df01;p=lemmy.git Adding a search icon, and a faster transition. --- diff --git a/ui/assets/css/main.css b/ui/assets/css/main.css index a05f5a8b..fd65148c 100644 --- a/ui/assets/css/main.css +++ b/ui/assets/css/main.css @@ -252,7 +252,7 @@ pre { .form-control.search-input { float: right !important; - transition: width 0.5s ease-out 0s !important; + transition: width 0.2s ease-out 0s !important; } .show-input { @@ -263,4 +263,4 @@ pre { background: transparent !important; width: 0px !important; padding: 0 !important; - } \ No newline at end of file + } diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx index 7c72d6cd..53b085e5 100644 --- a/ui/src/components/navbar.tsx +++ b/ui/src/components/navbar.tsx @@ -245,21 +245,22 @@ export class Navbar extends Component { placeholder={i18n.t('search')} onBlur={linkEvent(this, this.handleSearchBlur)} > -
- -
+ )} -