Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf41bc6e

Browse files
refactor: Design updates to API Dialog and Code Block for uplift sweep (langflow-ai#4431)
* api dialog sweep* update code blocks* [autofix.ci] apply automated fixes---------Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent6343568 commitf41bc6e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

‎src/frontend/src/components/codeTabsComponent/ChatCodeTabComponent.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ export default function SimplifiedCodeTabComponent({
3131
};
3232

3333
return(
34-
<divclassName="flex w-full flex-col overflow-hidden rounded-md text-left dark">
35-
<divclassName="flex w-full items-center justify-between rounded-t-md border border-border bg-accent px-4 py-2">
34+
<divclassName="mt-2flex w-full flex-col overflow-hidden rounded-md text-left dark">
35+
<divclassName="flex w-full items-center justify-between rounded-t-md border border-b-0border-border bg-muted px-4 py-2">
3636
<spanclassName="dar text-sm font-semibold text-white">{language}</span>
3737
<Button
3838
variant="ghost"
3939
size="icon"
40-
className="bg-cardtext-muted-foreground"
40+
className="text-muted-foreground hover:bg-card"
4141
data-testid="copy-code-button"
4242
onClick={copyToClipboard}
4343
>

‎src/frontend/src/components/codeTabsComponent/index.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default function CodeTabsComponent({
9494
dangerouslySetInnerHTML={{__html:tab.description}}
9595
></div>
9696
)}
97-
<divclassName="flex w-full items-center justify-end gap-4 rounded-t-md border border-b-0border-input bg-secondary px-4 py-2">
97+
<divclassName="flex w-full items-center justify-end gap-4 rounded-t-md border border-border bg-muted px-4 py-2">
9898
{nodes.length>0&&
9999
tabs.find((tab)=>tab.name.toLowerCase()==="tweaks")&&
100100
tabs[activeTab].hasTweaks&&(
@@ -152,7 +152,7 @@ export default function CodeTabsComponent({
152152
<SyntaxHighlighter
153153
language={tab.language}
154154
style={oneDark}
155-
className="!my-0 h-full overflow-auto rounded-sm !rounded-t-none border border-t-0 border-input bg-code-block text-left custom-scroll"
155+
className="!my-0 h-full overflow-auto rounded-sm !rounded-t-none border border-t-0 border-border bg-code-block text-left custom-scroll"
156156
>
157157
{tab.code}
158158
</SyntaxHighlighter>

‎src/frontend/src/components/ui/tabs.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const TabsTrigger = React.forwardRef<
2828
<TabsPrimitive.Trigger
2929
ref={ref}
3030
className={cn(
31-
"inline-flex h-full items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-b-2 data-[state=active]:border-current data-[state=active]:text-primary data-[state=inactive]:hover:bg-secondary/80",
31+
"inline-flex h-full items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-b-2 data-[state=active]:border-current data-[state=active]:text-primary data-[state=inactive]:hover:text-primary",
3232
className,
3333
)}
3434
{...props}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp