Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: fix ui glitch with the ai gen buttons

Ilian Sapundshiev48afd7050002
diff --git a/src/renderer/components/chat/AiGenDescButton.tsx b/src/renderer/components/chat/AiGenDescButton.tsx
index 1a9ebb5a4..a34ff3a57 100644
--- a/src/renderer/components/chat/AiGenDescButton.tsx
+++ b/src/renderer/components/chat/AiGenDescButton.tsx
@@ -42,7 +42,7 @@ import { AIIcon } from '../CommonIcons';
type Props = TSButtonProps & { style?: any };
function AiGenDescButton(props: Props) {
- const { style } = props;
+ const { sx } = props;
const { t } = useTranslation();
// const { disabled } = props;
const dispatch: AppDispatch = useDispatch();
@@ -90,7 +90,7 @@ function AiGenDescButton(props: Props) {
}
return (
- <ButtonGroup style={{ ...style }}>
+ <ButtonGroup sx={{ ...sx }}>
<TsButton
loading={isLoading}
disabled={disabled}
diff --git a/src/renderer/components/chat/AiGenTagsButton.tsx b/src/renderer/components/chat/AiGenTagsButton.tsx
index d26ede6fb..1c8ba6187 100644
--- a/src/renderer/components/chat/AiGenTagsButton.tsx
+++ b/src/renderer/components/chat/AiGenTagsButton.tsx
@@ -47,8 +47,7 @@ type Props = TSButtonProps & {
};
function AiGenTagsButton(props: Props) {
- const { fromDescription, variant, entries, generationCompleted, style } =
- props;
+ const { fromDescription, variant, entries, generationCompleted, sx } = props;
const { t } = useTranslation();
const { findLocation } = useCurrentLocationContext();
const { openedEntry } = useOpenedEntryContext();
@@ -114,7 +113,7 @@ function AiGenTagsButton(props: Props) {
};
return (
- <ButtonGroup style={{ ...style }}>
+ <ButtonGroup sx={{ ...sx }}>
<TsButton
loading={isLoading}
disabled={disabled}