mirror of
https://github.com/directus/directus.git
synced 2026-02-16 08:25:10 -05:00
Remove marginTop option from presentation divider (#8467)
* Remove margins * Remove marginTop from interface * Remove margin for first divider in form * Remove merge conflict resolve conflict resolve conflict Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -44,21 +44,6 @@ export default defineInterface({
|
||||
interface: 'select-icon',
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'marginTop',
|
||||
name: '$t:interfaces.presentation-divider.margin_top',
|
||||
type: 'boolean',
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'boolean',
|
||||
options: {
|
||||
label: '$t:interfaces.presentation-divider.margin_top_label',
|
||||
},
|
||||
},
|
||||
schema: {
|
||||
default_value: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'inlineTitle',
|
||||
name: '$t:interfaces.presentation-divider.inline_title',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-divider
|
||||
:class="{ 'add-margin-top': marginTop }"
|
||||
:class="{ 'add-margin-top': icon || title }"
|
||||
:style="{
|
||||
'--v-divider-label-color': color,
|
||||
'--v-divider-color': 'var(--border-subdued)',
|
||||
@@ -34,20 +34,11 @@ export default defineComponent({
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
marginTop: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.v-divider {
|
||||
margin-top: 10px;
|
||||
margin-bottom: -10px;
|
||||
}
|
||||
|
||||
.add-margin-top {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user