Hide collection setting dividers

This commit is contained in:
Samuel Elliott 2018-08-10 14:11:25 +01:00
parent a12a3c74f4
commit dc3fed3408
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
6 changed files with 13 additions and 7 deletions

View File

@ -151,7 +151,7 @@
{
"id": "security",
"text": "Security and Privacy",
"headertext": "Security Settings",
"headertext": "Security and Privacy Settings",
"settings": [
{
"id": "default",

View File

@ -8,4 +8,3 @@
@import './updater.scss';
@import './window-preferences';
@import './kvp';
@import './collection';

View File

@ -2,7 +2,7 @@
display: flex;
flex-direction: column;
div:first-child {
> :first-child {
flex: 1 1 auto;
}
@ -11,6 +11,10 @@
flex-grow: 1;
margin-top: 5px;
> :first-child {
flex: 1 0 auto;
}
.bd-removeCollectionItem {
width: 20px;
flex: 0 1 auto;
@ -18,7 +22,6 @@
justify-content: center;
align-items: center;
cursor: pointer;
margin-bottom: 30px;
&:hover {
svg {
@ -41,6 +44,7 @@
justify-content: center;
align-items: center;
margin-right: 2px;
margin-top: 10px;
svg {
width: 16px;

View File

@ -9,3 +9,4 @@
@import './files.scss';
@import './guilds.scss';
@import './arrays.scss';
@import './collections.scss';

View File

@ -11,7 +11,7 @@
<template>
<div class="bd-formCollection">
<div v-for="s in setting.items" class="bd-collectionItem">
<Setting :setting="s" :key="s.id" />
<Setting :setting="s" :hide-divider="true" :key="s.id" />
<div class="bd-removeCollectionItem" @click="removeItem(s)"><MiMinus/></div>
</div>
<div class="bd-newCollectionItem" @click="addItem"><MiPlus/></div>

View File

@ -26,7 +26,8 @@
<KeyValuePair v-else-if="setting.type === 'kvp'" :setting="setting" />
<SecureKeyValuePair v-else-if="setting.type === 'securekvp'" :setting="setting" />
<CustomSetting v-else-if="setting.type === 'custom'" :setting="setting" />
<div class="bd-form-divider"></div>
<div v-if="!hideDivider" class="bd-form-divider"></div>
</div>
</template>
@ -51,7 +52,8 @@
export default {
props: [
'setting'
'setting',
'hide-divider'
],
components: {
BoolSetting,