From 74a8c63730df082d6cd643dad232dc8296a17523 Mon Sep 17 00:00:00 2001 From: ydcjeff Date: Sat, 21 Dec 2024 21:29:09 +0800 Subject: [PATCH 1/3] feat: auto resize search bar --- components/SearchPageJumbotron.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/SearchPageJumbotron.js b/components/SearchPageJumbotron.js index 78dc7d48..91919b5b 100644 --- a/components/SearchPageJumbotron.js +++ b/components/SearchPageJumbotron.js @@ -2,7 +2,7 @@ import { useRef, useEffect, memo } from 'react'; import { useRouter } from 'next/router'; import { t } from 'ttag'; import { makeStyles, withStyles } from '@material-ui/core/styles'; -import { Tabs, Tab, Box, Container } from '@material-ui/core'; +import { Tabs, Tab, Box, Container, TextareaAutosize } from '@material-ui/core'; import SearchIcon from '@material-ui/icons/Search'; const useStyles = makeStyles(theme => ({ @@ -10,6 +10,7 @@ const useStyles = makeStyles(theme => ({ background: '#202020', }, search: { + alignSelf: 'flex-start', color: theme.palette.common.white, paddingRight: theme.spacing(3), }, @@ -53,6 +54,7 @@ const useStyles = makeStyles(theme => ({ outline: 'none', color: theme.palette.common.white, background: 'transparent', + paddingRight: theme.spacing(4), }, submit: { display: 'none', @@ -109,11 +111,11 @@ function SearchPageJumbotron() {

{t`Searching`}

-