add icon to zoom2fit

This commit is contained in:
hjlarry 2025-09-23 22:22:28 +08:00
parent 9e8ac5c96b
commit 8c00f89e36
1 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import {
} from 'react'
import {
RiCheckLine,
RiFullscreenLine,
RiZoomInLine,
RiZoomOutLine,
} from '@remixicon/react'
@ -269,6 +270,15 @@ const ZoomInOut: FC<ZoomInOutProps> = ({
{option.key === ZoomType.toggleMiniMap && !showMiniMap && (
<div className='h-4 w-4' />
)}
{option.key === ZoomType.zoomToFit && (
<RiFullscreenLine className='h-4 w-4 text-text-tertiary' />
)}
{option.key !== ZoomType.toggleUserComments
&& option.key !== ZoomType.toggleUserCursors
&& option.key !== ZoomType.toggleMiniMap
&& option.key !== ZoomType.zoomToFit && (
<div className='h-4 w-4' />
)}
<span>{option.text}</span>
</div>
<div className='flex items-center space-x-0.5'>