mirror of
https://github.com/alexandrev/xslt-lab.git
synced 2026-09-21 04:43:16 +00:00
Add parameters header and drop hint
This commit is contained in:
@@ -362,7 +362,8 @@ export default function App() {
|
|||||||
onDragOver={(e) => e.preventDefault()}
|
onDragOver={(e) => e.preventDefault()}
|
||||||
onDrop={handleDropNewParam}
|
onDrop={handleDropNewParam}
|
||||||
>
|
>
|
||||||
<div style={{ marginBottom: "0.5rem" }}>
|
<div className="params-header">
|
||||||
|
<div className="title">Data Pipeline</div>
|
||||||
<button className="icon-button" onClick={addParam}>➕</button>
|
<button className="icon-button" onClick={addParam}>➕</button>
|
||||||
</div>
|
</div>
|
||||||
{activeTab.params.map((p, i) => (
|
{activeTab.params.map((p, i) => (
|
||||||
@@ -408,6 +409,7 @@ export default function App() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
<div className="drop-hint">Drop your input XML files here..</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="editor">
|
<div className="editor">
|
||||||
<div style={{ marginBottom: "0.5rem" }} className="toggle">
|
<div style={{ marginBottom: "0.5rem" }} className="toggle">
|
||||||
|
|||||||
@@ -87,6 +87,29 @@ body,
|
|||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.params-header {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.params-header .title {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.params-header button {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.drop-hint {
|
||||||
|
text-align: center;
|
||||||
|
color: #666;
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.editor {
|
.editor {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user