Set min-width on search form position element (#30473)

GitOrigin-RevId: 6f65eba9589f14f7d22668e925d819467c0ad4bd
This commit is contained in:
Alf Eaton
2026-01-08 11:44:31 +00:00
committed by Copybot
parent b4ff3f15ad
commit b69797e3f4
2 changed files with 10 additions and 7 deletions

View File

@@ -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 && (

View File

@@ -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',