mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
Remove MDXEditor theme styles and unused attachments parameter
Eliminated the MDXEditor styles from the base theme as they are not in use. Also removed the unused "attachments" parameter from the xai model configuration for cleaner and more maintainable code.
This commit is contained in:

committed by
Geoff Seemueller

parent
47272ba350
commit
d90ab65b04
@@ -109,67 +109,6 @@ const components = {
|
||||
},
|
||||
},
|
||||
},
|
||||
MDXEditor: {
|
||||
baseStyle: (props) => ({
|
||||
border: "1px solid",
|
||||
borderColor: "text.primary",
|
||||
borderRadius: "lg",
|
||||
height: "sm",
|
||||
bg: "background.primary",
|
||||
color: "text.primary",
|
||||
boxShadow: "md",
|
||||
// p: 4,
|
||||
|
||||
".mdxeditor-toolbar": {
|
||||
border: "1px solid",
|
||||
borderColor: "text.primary",
|
||||
borderRadius: "xl",
|
||||
bg: "background.primary",
|
||||
m: 2,
|
||||
p: 2,
|
||||
// mb: 3,
|
||||
// p: 3,
|
||||
|
||||
"& button": {
|
||||
border: "none",
|
||||
borderRadius: "md",
|
||||
cursor: "pointer",
|
||||
px: 3,
|
||||
py: 1,
|
||||
mr: 2,
|
||||
transition: "all 0.3s ease",
|
||||
|
||||
_hover: {
|
||||
bg: "text.secondary",
|
||||
},
|
||||
_active: {
|
||||
bg: "background.primary",
|
||||
color: "text.primary",
|
||||
},
|
||||
'&[data-state="on"]': {
|
||||
bg: "transparent",
|
||||
fill: "text.primary",
|
||||
stroke: "text.primary",
|
||||
boxShadow: "0 0 0 2px var(--text-primary)",
|
||||
transform: "translateY(-1px)",
|
||||
transition: "all 0.2s ease",
|
||||
// border: '2px solid transparent', // No border needed for SVG
|
||||
},
|
||||
'&[data-state="off"]': {
|
||||
bg: "transparent",
|
||||
fill: "text.secondary",
|
||||
stroke: "text.secondary",
|
||||
opacity: 0.8,
|
||||
transition: "all 0.2s ease",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
"[aria-label='editable markdown']": {
|
||||
color: "text.primary",
|
||||
},
|
||||
}),
|
||||
},
|
||||
CodeBlocks: {
|
||||
baseStyle: (props) => ({
|
||||
bg: "background.primary",
|
||||
|
@@ -20,7 +20,6 @@ export class XaiChatSdk {
|
||||
systemPrompt,
|
||||
maxTokens,
|
||||
messages,
|
||||
attachments,
|
||||
env,
|
||||
model,
|
||||
preprocessedContext,
|
||||
|
Reference in New Issue
Block a user