mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
Set min-width on search form position element (#30473)
GitOrigin-RevId: 6f65eba9589f14f7d22668e925d819467c0ad4bd
This commit is contained in:
@@ -442,13 +442,15 @@ const CodeMirrorSearchForm: FC<React.PropsWithChildren> = () => {
|
||||
|
||||
<FullProjectSearchButton query={query} />
|
||||
|
||||
{position !== null && (
|
||||
<div className="ol-cm-search-form-position">
|
||||
{position.current === null ? '?' : position.current} {t('of')}{' '}
|
||||
{position.total}
|
||||
{position.interrupted && '+'}
|
||||
</div>
|
||||
)}
|
||||
<div className="ol-cm-search-form-position">
|
||||
{position !== null && (
|
||||
<>
|
||||
{position.current === null ? '?' : position.current} {t('of')}{' '}
|
||||
{position.total}
|
||||
{position.interrupted && '+'}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{showReplace && (
|
||||
|
||||
@@ -407,6 +407,7 @@ const searchFormTheme = EditorView.theme({
|
||||
'.ol-cm-search-form-position': {
|
||||
flexShrink: 0,
|
||||
color: 'var(--content-secondary)',
|
||||
minWidth: '5em',
|
||||
},
|
||||
'.ol-cm-search-hidden-inputs': {
|
||||
position: 'absolute',
|
||||
|
||||
Reference in New Issue
Block a user