feat: enable AI feature toggle in AISummaryCardBase and adjust spacing in EntryPlaceholderLogo
This commit is contained in:
@@ -6,6 +6,7 @@ import { useTranslation } from "react-i18next"
|
||||
|
||||
import { CopyButton } from "~/components/ui/button/CopyButton"
|
||||
import { Markdown } from "~/components/ui/markdown/Markdown"
|
||||
import { useFeature } from "~/hooks/biz/useFeature"
|
||||
|
||||
interface AISummaryCardBaseProps {
|
||||
/** Summary content to display */
|
||||
@@ -61,6 +62,7 @@ export const AISummaryCardBase: React.FC<AISummaryCardBaseProps> = ({
|
||||
onAskAI,
|
||||
}) => {
|
||||
const { t } = useTranslation("app")
|
||||
const aiEnabled = useFeature("ai")
|
||||
|
||||
const hasContent = !isLoading && content
|
||||
|
||||
@@ -123,7 +125,7 @@ export const AISummaryCardBase: React.FC<AISummaryCardBaseProps> = ({
|
||||
)}
|
||||
|
||||
<div className="flex items-center gap-2">
|
||||
{showAskAIButton && hasContent && onAskAI && (
|
||||
{aiEnabled && showAskAIButton && hasContent && onAskAI && (
|
||||
<MotionButtonBase
|
||||
onClick={onAskAI}
|
||||
className={cn(
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ export const EntryPlaceholderLogo = () => {
|
||||
data-hide-in-print
|
||||
onContextMenu={stopPropagation}
|
||||
className={
|
||||
"flex w-full min-w-0 flex-col items-center justify-center gap-1 px-12 pb-6 text-center text-lg font-medium text-text-secondary duration-500"
|
||||
"flex w-full min-w-0 flex-col items-center justify-center gap-2 px-12 pb-6 text-center text-lg font-medium text-text-secondary duration-500"
|
||||
}
|
||||
>
|
||||
<Logo className="size-16 opacity-40 grayscale" />
|
||||
|
||||
Reference in New Issue
Block a user