fix: refine create page layout spacing

This commit is contained in:
a.tolmachev
2026-03-26 22:56:49 +03:00
parent ff3a44eef6
commit 3a17f9151f
3 changed files with 169 additions and 142 deletions
@@ -345,6 +345,7 @@ export function OperationForm() {
creationMutation.mutate(values); creationMutation.mutate(values);
})} })}
> >
<div className="builder-content">
<section className="builder-card"> <section className="builder-card">
<header className="builder-card-header"> <header className="builder-card-header">
<div> <div>
@@ -429,7 +430,8 @@ export function OperationForm() {
/> />
</label> </label>
) : null} ) : null}
{activeProtocol === "rest" ? renderField({ {activeProtocol === "rest"
? renderField({
name: "restStaticHeadersText", name: "restStaticHeadersText",
label: "Static headers", label: "Static headers",
description: description:
@@ -437,7 +439,8 @@ export function OperationForm() {
rows: 8, rows: 8,
wide: true, wide: true,
code: true, code: true,
}) : null} })
: null}
</div> </div>
<div className="info-banner"> <div className="info-banner">
@@ -466,7 +469,10 @@ export function OperationForm() {
<header className="builder-card-header"> <header className="builder-card-header">
<div> <div>
<h2>5 Mapping and execution</h2> <h2>5 Mapping and execution</h2>
<p>Translate MCP input to request fields, then map upstream output back to tool output.</p> <p>
Translate MCP input to request fields, then map upstream output back to tool
output.
</p>
</div> </div>
</header> </header>
<div className="builder-card-body"> <div className="builder-card-body">
@@ -497,6 +503,7 @@ export function OperationForm() {
: "Failed to create operation"} : "Failed to create operation"}
</div> </div>
) : null} ) : null}
</div>
<div className="sticky-action-bar"> <div className="sticky-action-bar">
<div className="sticky-action-copy"> <div className="sticky-action-copy">
+1
View File
@@ -60,6 +60,7 @@ export function AppShell({ children }: AppShellProps) {
<p className="sidebar-label">Workspace</p> <p className="sidebar-label">Workspace</p>
<nav className="sidebar-nav"> <nav className="sidebar-nav">
<NavLink <NavLink
end
to="/operations" to="/operations"
className={({ isActive }) => className={({ isActive }) =>
isActive ? "nav-link nav-link-active" : "nav-link" isActive ? "nav-link nav-link-active" : "nav-link"
+24 -5
View File
@@ -324,7 +324,8 @@ button {
} }
.page-header { .page-header {
margin-bottom: 24px; max-width: 1240px;
margin: 0 auto 24px;
} }
.page-header h1 { .page-header h1 {
@@ -405,7 +406,14 @@ button {
.builder-stack { .builder-stack {
width: 100%; width: 100%;
max-width: 1320px; }
.builder-content {
width: 100%;
max-width: 1240px;
margin: 0 auto;
display: grid;
gap: 16px;
} }
.page-section, .page-section,
@@ -470,6 +478,11 @@ button {
padding: 0 24px 24px; padding: 0 24px 24px;
} }
.builder-content .form-grid {
grid-template-columns: repeat(2, minmax(280px, 420px));
justify-content: space-between;
}
.proto-grid { .proto-grid {
display: grid; display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: repeat(3, minmax(0, 1fr));
@@ -859,8 +872,9 @@ button {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 16px; gap: 16px;
padding: 12px 20px; width: 100%;
border-radius: var(--radius-xl); padding: 12px 28px;
border-radius: 0;
background: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(16px); backdrop-filter: blur(16px);
border: 1px solid var(--border); border: 1px solid var(--border);
@@ -1114,7 +1128,7 @@ pre {
padding: 20px; padding: 20px;
} }
.builder-stack { .builder-content {
max-width: none; max-width: none;
} }
} }
@@ -1144,4 +1158,9 @@ pre {
padding-left: 16px; padding-left: 16px;
padding-right: 16px; padding-right: 16px;
} }
.sticky-action-bar {
padding-left: 16px;
padding-right: 16px;
}
} }