Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/public/images/agent-button-block.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/ui/AgentButtonBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Notice } from "obsidian";
import type AgentClientPlugin from "../plugin";
import type { AgentButtonBlockConfig } from "../utils/agent-block-parser";
import { findAgentSettings } from "../services/session-helpers";
import { LucideIcon } from "./shared/IconButton";

interface AgentButtonBlockProps {
plugin: AgentClientPlugin;
Expand Down Expand Up @@ -73,6 +74,10 @@ function AgentButtonBlockComponent({
className="agent-client-button-block-button mod-cta"
onClick={() => void handleClick()}
>
<LucideIcon
name="bot-message-square"
className="agent-client-button-block-icon"
/>
<span className="agent-client-button-block-text">
{config.text}
</span>
Expand Down
9 changes: 9 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2456,3 +2456,12 @@ If your plugin does not need CSS, delete this file.
.agent-client-button-block-text {
white-space: nowrap;
}

.agent-client-button-block-icon {
display: flex;
}

.agent-client-button-block-icon svg {
width: 16px;
height: 16px;
}
Loading