wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
app/components/datasets/documents/detail/completed/common/action-buttons.tsx
@@ -36,8 +36,8 @@
    if (loading)
      return
    handleSave()
  },
  { exactMatch: true, useCapture: true })
  }
  , { exactMatch: true, useCapture: true })
  const isParentChildParagraphMode = useMemo(() => {
    return mode === 'hierarchical' && parentMode === 'paragraph'
@@ -49,8 +49,8 @@
        onClick={handleCancel}
      >
        <div className='flex items-center gap-x-1'>
          <span className='system-sm-medium text-components-button-secondary-text'>{t('common.operation.cancel')}</span>
          <span className='system-kbd rounded-[4px] bg-components-kbd-bg-gray px-[1px] text-text-tertiary'>ESC</span>
          <span className='text-components-button-secondary-text system-sm-medium'>{t('common.operation.cancel')}</span>
          <span className='px-[1px] bg-components-kbd-bg-gray rounded-[4px] text-text-tertiary system-kbd'>ESC</span>
        </div>
      </Button>
      {(isParentChildParagraphMode && actionType === 'edit' && !isChildChunk)
@@ -58,7 +58,7 @@
          onClick={handleRegeneration}
          disabled={loading}
        >
          <span className='system-sm-medium text-components-button-secondary-text'>
          <span className='text-components-button-secondary-text system-sm-medium'>
            {t('common.operation.saveAndRegenerate')}
          </span>
        </Button>
@@ -72,8 +72,8 @@
        <div className='flex items-center gap-x-1'>
          <span className='text-components-button-primary-text'>{t('common.operation.save')}</span>
          <div className='flex items-center gap-x-0.5'>
            <span className='system-kbd h-4 w-4 rounded-[4px] bg-components-kbd-bg-white capitalize text-text-primary-on-surface'>{getKeyboardKeyNameBySystem('ctrl')}</span>
            <span className='system-kbd h-4 w-4 rounded-[4px] bg-components-kbd-bg-white text-text-primary-on-surface'>S</span>
            <span className='w-4 h-4 bg-components-kbd-bg-white rounded-[4px] text-text-primary-on-surface system-kbd capitalize'>{getKeyboardKeyNameBySystem('ctrl')}</span>
            <span className='w-4 h-4 bg-components-kbd-bg-white rounded-[4px] text-text-primary-on-surface system-kbd'>S</span>
          </div>
        </div>
      </Button>