Skip to content

Commit eb40993

Browse files
authored
Move Copy button outside of the code block (baserow#4267)
1 parent 4648de1 commit eb40993

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

web-frontend/modules/automation/components/sidebar/SampleDataModal.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
<h2 class="box__title">{{ title }}</h2>
44
<div class="sample-data-modal__sub-title">
55
{{ $t('simulateDispatch.sampleDataModalSubTitle') }}
6-
</div>
7-
<div class="sample-data-modal__code">
86
<Button
9-
class="sample-data-modal__copy-button"
107
type="secondary"
118
icon="iconoir-copy simulate-dispatch-node__button-icon"
129
@click="copyToClipboard"
1310
>
1411
{{ $t('simulateDispatch.sampleDataCopy') }}
1512
</Button>
13+
</div>
14+
<div class="sample-data-modal__code">
1615
<pre><code>{{ sampleData }}</code></pre>
1716
</div>
1817
</Modal>

web-frontend/modules/core/assets/scss/components/automation/workflow/sample_data_modal.scss

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
}
99

1010
.sample-data-modal__sub-title {
11+
display: flex;
12+
justify-content: space-between;
13+
align-items: center;
1114
font-size: 14px;
1215
margin-bottom: 10px;
1316
}
@@ -30,10 +33,3 @@
3033
word-break: break-word;
3134
}
3235
}
33-
34-
.sample-data-modal__copy-button {
35-
position: absolute;
36-
top: 6px;
37-
right: 6px;
38-
z-index: 1;
39-
}

0 commit comments

Comments
 (0)