mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 19:27:23 +08:00
fix: try-to-ask misalign (#29309)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
a0c8ebf487
commit
48efd2d174
@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next'
|
|||||||
import type { OnSend } from '../types'
|
import type { OnSend } from '../types'
|
||||||
import Button from '@/app/components/base/button'
|
import Button from '@/app/components/base/button'
|
||||||
import Divider from '@/app/components/base/divider'
|
import Divider from '@/app/components/base/divider'
|
||||||
import cn from '@/utils/classnames'
|
|
||||||
|
|
||||||
type TryToAskProps = {
|
type TryToAskProps = {
|
||||||
suggestedQuestions: string[]
|
suggestedQuestions: string[]
|
||||||
@ -20,12 +19,12 @@ const TryToAsk: FC<TryToAskProps> = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='mb-2 py-2'>
|
<div className='mb-2 py-2'>
|
||||||
<div className={cn('mb-2.5 flex items-center justify-between gap-2', isMobile && 'justify-end')}>
|
<div className="mb-2.5 flex items-center justify-between gap-2">
|
||||||
<Divider bgStyle='gradient' className='h-px grow rotate-180' />
|
<Divider bgStyle='gradient' className='h-px !w-auto grow rotate-180' />
|
||||||
<div className='system-xs-medium-uppercase shrink-0 text-text-tertiary'>{t('appDebug.feature.suggestedQuestionsAfterAnswer.tryToAsk')}</div>
|
<div className='system-xs-medium-uppercase shrink-0 text-text-tertiary'>{t('appDebug.feature.suggestedQuestionsAfterAnswer.tryToAsk')}</div>
|
||||||
{!isMobile && <Divider bgStyle='gradient' className='h-px grow' />}
|
<Divider bgStyle='gradient' className='h-px !w-auto grow' />
|
||||||
</div>
|
</div>
|
||||||
<div className={cn('flex flex-wrap justify-center', isMobile && 'justify-end')}>
|
<div className="flex flex-wrap justify-center">
|
||||||
{
|
{
|
||||||
suggestedQuestions.map((suggestQuestion, index) => (
|
suggestedQuestions.map((suggestQuestion, index) => (
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user