From: Rens Groothuijsen Date: Fri, 21 Oct 2022 03:56:57 +0000 (+0200) Subject: Search button and input style fixes (#825) X-Git-Url: http://these/git/%24%7B%60data:application/static/%7B%60https:/%7Brss%7D?a=commitdiff_plain;h=b979e0a3a973f09a76d7198622b285b4c9c71ed5;p=lemmy-ui.git Search button and input style fixes (#825) * Align search button style with other navbar buttons, disable search box when hidden, adjust search box size * Align search button margin with other navigation bar buttons --- diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 3ec52d0..0018f59 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -306,7 +306,7 @@ pre { } .show-input { - width: 13em !important; + width: 13vw !important; } .hide-input { background: transparent !important; diff --git a/src/shared/components/app/navbar.tsx b/src/shared/components/app/navbar.tsx index c0adb80..4607b5a 100644 --- a/src/shared/components/app/navbar.tsx +++ b/src/shared/components/app/navbar.tsx @@ -314,35 +314,39 @@ export class Navbar extends Component { {!this.context.router.history.location.pathname.match( /^\/search/ ) && ( -
- - - -
+ )} {UserService.Instance.myUserInfo.isSome() ? ( <>