Просмотр исходного кода

Increase the maximum width of the search input (#23140)

GitOrigin-RevId: 70619c42cbbb16047a929e773a30ba4c0b5cfa50
Alf Eaton 1 год назад
Родитель
Сommit
97d7a60f68
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      services/web/frontend/js/features/source-editor/extensions/search.ts

+ 2 - 1
services/web/frontend/js/features/source-editor/extensions/search.ts

@@ -314,6 +314,7 @@ const searchFormTheme = EditorView.theme({
     gridTemplateColumns: 'auto auto',
     gridTemplateColumns: 'auto auto',
     gridTemplateRows: 'auto auto',
     gridTemplateRows: 'auto auto',
     gap: 'var(--ol-cm-search-form-gap)',
     gap: 'var(--ol-cm-search-form-gap)',
+    flex: 1,
   },
   },
   '@container (max-width: 450px)': {
   '@container (max-width: 450px)': {
     '.ol-cm-search-controls': {
     '.ol-cm-search-controls': {
@@ -335,7 +336,7 @@ const searchFormTheme = EditorView.theme({
     borderRadius: '20px',
     borderRadius: '20px',
     background: 'white',
     background: 'white',
     width: '100%',
     width: '100%',
-    maxWidth: '25em',
+    maxWidth: '50em',
     display: 'inline-flex',
     display: 'inline-flex',
     alignItems: 'center',
     alignItems: 'center',
     '& input[type="text"]': {
     '& input[type="text"]': {