Skip to content

Commit 7ded32f

Browse files
committed
- Styling: Email Editor gallery - removed some scoped classes and refactored the stack structure.
1 parent ec6d134 commit 7ded32f

File tree

1 file changed

+24
-29
lines changed

1 file changed

+24
-29
lines changed

Rock.JavaScript.Obsidian.Blocks/src/Example/ControlGallery/emailEditorGallery.partial.obs

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,41 @@
1616
<div class="settings">
1717
<ContentSection title="Settings">
1818
<ContentStack title="General">
19-
<div class="autolayout">
20-
<div>
19+
<div class="row">
20+
<div class="col-md-6">
2121
<p>Since this editor does not automatically save changes, they must be requested on demand when the updated HTML is needed.</p>
22-
<div class="button-wrapper">
23-
<RockButton btnType="primary" help="The Email Editor value is only updated on demand. Click this button to get its current value." @click="onGetHtmlClicked">Get HTML</RockButton>
24-
</div>
22+
<RockButton btnType="primary" help="The Email Editor value is only updated on demand. Click this button to get its current value." @click="onGetHtmlClicked">Get HTML</RockButton>
2523
</div>
2624

27-
<Switch v-model="ltr"
28-
help="Enable left-to-right layout for the editor and side panel."
29-
label="Left to Right"
30-
:text="ltr ? 'Yes' : 'No'" />
25+
<div class="col-md-6">
26+
<Switch v-model="ltr"
27+
help="Enable left-to-right layout for the editor and side panel."
28+
label="Left to Right"
29+
:text="ltr ? 'Yes' : 'No'" />
30+
</div>
3131
</div>
3232
</ContentStack>
3333

3434
<ContentStack title="Blocks > Paragraph">
35-
<div class="autolayout">
36-
<ValueList v-model="mergeFields"
37-
label="Merge Fields"
38-
help="The merge fields that are available for selection in the Merge Field toolbar button of the Paragraph block. If this is not set, then the Merge Field button will be hidden in the editor toolbar." />
35+
<div class="row">
36+
<div class="col-md-6">
37+
<ValueList v-model="mergeFields"
38+
label="Merge Fields"
39+
help="The merge fields that are available for selection in the Merge Field toolbar button of the Paragraph block. If this is not set, then the Merge Field button will be hidden in the editor toolbar." />
40+
</div>
3941
</div>
4042
</ContentStack>
4143

4244
<ContentStack title="Styles > Body Settings">
43-
<CheckBoxList v-model="simulateValues"
44-
label="Simulate"
45-
:items="simulateOptions"
46-
horizontal
47-
:repeatColumns="4" />
45+
<div class="row">
46+
<div class="col-md-6">
47+
<CheckBoxList v-model="simulateValues"
48+
label="Simulate"
49+
:items="simulateOptions"
50+
horizontal
51+
:repeatColumns="4" />
52+
</div>
53+
</div>
4854
</ContentStack>
4955
</ContentSection>
5056
</div>
@@ -58,21 +64,10 @@
5864
height: 600px;
5965
}
6066

61-
.button-wrapper {
62-
display: flex;
63-
align-items: center;
64-
}
65-
6667
.settings {
6768
max-height: 350px;
6869
overflow: auto;
6970
}
70-
71-
.autolayout {
72-
display: grid;
73-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
74-
column-gap: var(--spacing-small);
75-
}
7671
</style>
7772

7873
<script setup lang="ts">

0 commit comments

Comments
 (0)