Skip to content

Commit

Permalink
fix: tooltip size sets improperly
Browse files Browse the repository at this point in the history
  • Loading branch information
YIXIAO0 committed Aug 30, 2024
1 parent ceb2b15 commit bcdf5d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const RetrievalParamConfig: FC<Props> = ({
<div className='truncate'>{option.label}</div>
<Tooltip
popupContent={<div className='w-[200px]'>{option.tips}</div>}
triggerClassName='ml-0.5 w-3.5 h-4.5'
triggerClassName='ml-0.5 w-3.5 h-3.5'
/>
</div>
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
{t('common.modelProvider.systemReasoningModel.tip')}
</div>
}
triggerClassName='ml-0.5'
triggerClassName='ml-0.5 w-4 h-4 shrink-0'
/>
</div>
<div>
Expand All @@ -168,8 +168,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
{t('common.modelProvider.embeddingModel.tip')}
</div>
}
needsDelay={false}
triggerClassName='ml-0.5'
triggerClassName='ml-0.5 w-4 h-4 shrink-0'
/>
</div>
<div>
Expand All @@ -189,8 +188,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
{t('common.modelProvider.rerankModel.tip')}
</div>
}
needsDelay={false}
triggerClassName='ml-0.5'
triggerClassName='ml-0.5 w-4 h-4 shrink-0'
/>
</div>
<div>
Expand All @@ -210,8 +208,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
{t('common.modelProvider.speechToTextModel.tip')}
</div>
}
needsDelay={false}
triggerClassName='ml-0.5'
triggerClassName='ml-0.5 w-4 h-4 shrink-0'
/>
</div>
<div>
Expand All @@ -231,7 +228,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
{t('common.modelProvider.ttsModel.tip')}
</div>
}
triggerClassName='ml-0.5'
triggerClassName='ml-0.5 w-4 h-4 shrink-0'
/>
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const ConfigCredential: FC<Props> = ({
{t('tools.createTool.authMethod.keyTooltip')}
</div>
}
triggerClassName='ml-0.5'
triggerClassName='ml-0.5 w-4 h-4'
/>
</div>
<input
Expand Down

0 comments on commit bcdf5d0

Please sign in to comment.