Skip to content

Commit dcae714

Browse files
use fa-stack method to position the multiple collections icons
1 parent 05fbe9d commit dcae714

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

client/src/components/Form/Elements/FormData/FormDataContextButtons.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ function createCollectionType(colType: string) {
6060
v-b-tooltip.hover.bottom
6161
:pressed="props.currentField === index"
6262
:title="v.tooltip"
63-
:style="v.icon === faFolder && v.multiple ? 'padding-bottom: 2px' : ''"
63+
:style="v.icon === faFolder && v.multiple ? 'padding: 2px' : ''"
6464
@click="emit('set-current-field', index)">
65-
<span v-if="v.icon === faFolder && v.multiple" style="position: relative; display: inline-block">
66-
<FontAwesomeIcon :icon="faFolder" size="sm" style="position: absolute; left: 2px" />
67-
<FontAwesomeIcon :icon="faFolder" size="sm" />
65+
<span v-if="v.icon === faFolder && v.multiple" class="fa-stack" style="height: unset">
66+
<FontAwesomeIcon :icon="faFolder" class="fa-stack-1x" />
67+
<FontAwesomeIcon :icon="faFolder" class="fa-stack-1x" style="transform: translate(0.2em, -0.2em)" />
6868
</span>
6969
<FontAwesomeIcon v-else :icon="v.icon" />
7070
</BButton>

0 commit comments

Comments
 (0)