Skip to content

🎥 Make videos programmatically with React

Style the ChatGPT restart action as an inline button

Jonny Burgerfe5f72e58cad
diff --git a/packages/studio/src/components/Notifications/ServerDisconnected.tsx b/packages/studio/src/components/Notifications/ServerDisconnected.tsx
index 676f34a136..20b9993b96 100644
--- a/packages/studio/src/components/Notifications/ServerDisconnected.tsx
+++ b/packages/studio/src/components/Notifications/ServerDisconnected.tsx
@@ -45,7 +45,14 @@ const inlineCode: React.CSSProperties = {
const annotationButton: React.CSSProperties = {
backgroundColor: TRANSPARENT,
- marginTop: 8,
+ color: WHITE,
+ display: 'inline-flex',
+ marginTop: 12,
+ textAlign: 'left',
+};
+
+const annotationButtonContent: React.CSSProperties = {
+ padding: 0,
};
let pageIsGoingToReload = false;
@@ -113,8 +120,8 @@ export const ServerDisconnected: React.FC = () => {
{canAnnotate && restartSkill ? (
<div>
<Button
- size="compact"
style={annotationButton}
+ buttonContainerStyle={annotationButtonContent}
onClick={onSendToChatGPT}
>
Send to ChatGPT