feat: remove unused default shortcuts from welcome content

This commit is contained in:
DIYgod
2025-09-18 19:52:08 +08:00
parent 30ea1271f5
commit ed211aaef6
3 changed files with 1 additions and 13 deletions
@@ -44,7 +44,6 @@ export const AIReasoningPart: React.FC<AIReasoningPartProps> = React.memo(
</div>
}
className="group/inner w-full border-none"
contentClassName="pb-0 pt-2"
>
<div className="text-xs">
<pre className="text-text-secondary bg-material-medium overflow-x-auto whitespace-pre-wrap rounded p-3 text-[11px] leading-relaxed">
@@ -15,7 +15,7 @@ export const AIMarkdownStreamingMessage = memo(
isStreaming?: boolean
}) => {
const className = `prose max-w-full dark:prose-invert prose-sm
prose-h1:text-2xl prose-h2:text-xl prose-h3:text-lg prose-h4:text-base prose-h5:text-base prose-h6:text-sm
prose-h1:text-2xl prose-h2:text-xl prose-h2:mt-2 prose-h3:text-lg prose-h4:text-base prose-h5:text-base prose-h6:text-sm
prose-li:list-disc prose-li:marker:text-accent prose-hr:border-border prose-hr:mx-8`
return (
@@ -10,8 +10,6 @@ interface DefaultWelcomeContentProps {
shortcuts: Array<{ id: string; name: string; prompt: string; enabled: boolean; hotkey?: string }>
}
const DEFAULT_SHORTCUTS = ["Generate today daily report"]
export const DefaultWelcomeContent: React.FC<DefaultWelcomeContentProps> = ({
onSend,
shortcuts: enabledShortcuts,
@@ -41,15 +39,6 @@ export const DefaultWelcomeContent: React.FC<DefaultWelcomeContentProps> = ({
{/* Show customize button when no shortcuts are available */}
{enabledShortcuts.length === 0 && (
<>
{DEFAULT_SHORTCUTS.slice(0, 4 - enabledShortcuts.length).map((suggestion, index) => (
<AIShortcutButton
key={suggestion}
onClick={() => onSend(suggestion, null)}
animationDelay={(enabledShortcuts.length + index) * 0.1}
>
{suggestion}
</AIShortcutButton>
))}
<AIShortcutButton
key="customize-shortcuts"
onClick={() => showSettings("ai")}