Skip to content

Commit 5a93c4c

Browse files
committed
Better rendering of editor overlay
1 parent 95cbf7e commit 5a93c4c

File tree

1 file changed

+32
-11
lines changed

1 file changed

+32
-11
lines changed

src/components/VisualEditor.vue

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,18 @@
2828
<div class="graphBuilder" @drop="onDrop" @dragover="allowDrop">
2929
<div v-if="showHelpOverlay" class="model-overlay">
3030
<h2>Welcome!</h2>
31-
<p>What you are seeing in this area of the {{ $config.appName }} is the visual model builder.</p>
32-
<p>You can start building your model by dragging collections, processes etc. from the left area and dropping them here.</p>
33-
<p>Alternatively, you can also import existing processes into the model builder:</p>
34-
<ul>
35-
<li v-if="canPaste">Paste the JSON from your clipboard by clicking <button type="button" @click="paste" title="Paste from clipboard"><i class="fas fa-paste"></i></button> or use <kbd>CTRL</kbd> + <kbd>V</kbd> (Windows, Linux) or <kbd>⌘</kbd> + <kbd>V</kbd> (MacOS) when the model builder is in focus.</li>
36-
<li>Drag and drop a JSON file from your computer</li>
37-
<li>Import a JSON file from your computer or another source such as the internet by clicking <button type="button" @click="importProcess" title="Import process from external source"><i class="fas fa-cloud-download-alt"></i></button></li>
38-
</ul>
31+
<p>
32+
What you are seeing in this area of the {{ $config.appName }} is the visual model builder.
33+
You can start building your model by dragging collections, processes etc. from the left area and dropping them here.
34+
</p>
35+
<p>
36+
Alternatively, you can also import existing processes into the model builder:
37+
<ul>
38+
<li v-if="canPaste">Paste the JSON from your clipboard by clicking <button type="button" @click="paste" title="Paste from clipboard"><i class="fas fa-paste"></i></button> or use <kbd>CTRL</kbd> + <kbd>V</kbd> (Windows, Linux) or <kbd>⌘</kbd> + <kbd>V</kbd> (MacOS) when the model builder is in focus.</li>
39+
<li>Drag and drop a JSON file from your computer</li>
40+
<li>Import a JSON file from your computer or another source such as the internet by clicking <button type="button" @click="importProcess" title="Import process from external source"><i class="fas fa-cloud-download-alt"></i></button></li>
41+
</ul>
42+
</p>
3943
<p>
4044
You can also import the processes from the Python and R client.
4145
You need to export your process to JSON first:
@@ -647,10 +651,27 @@ export default {
647651
padding: 1em;
648652
overflow: auto;
649653
box-sizing: border-box;
650-
line-height: 1.33em;
654+
line-height: 1.25em;
651655
652-
> p:first-of-type {
653-
margin-top: 0;
656+
> h2 {
657+
font-size: 1.2em;
658+
text-align: center;
659+
border-bottom: 0;
660+
margin-bottom: 0.5em;
661+
padding: 0;
662+
}
663+
> p {
664+
margin: 0.5em 0;
665+
666+
> ul {
667+
margin: 0.25em 0;
668+
}
669+
&:first-of-type {
670+
margin-top: 0;
671+
}
672+
&:last-of-type {
673+
margin-bottom: 0;
674+
}
654675
}
655676
}
656677

0 commit comments

Comments
 (0)