mirror of
https://github.com/directus/directus.git
synced 2026-01-29 16:28:02 -05:00
Fix marginTop not implemented in presentation divider (#8379)
This commit is contained in:
@@ -54,7 +54,7 @@ export default defineInterface({
|
||||
},
|
||||
},
|
||||
schema: {
|
||||
default_value: false,
|
||||
default_value: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-divider
|
||||
:class="{ margin: icon || title }"
|
||||
:class="{ 'add-margin-top': marginTop }"
|
||||
:style="{
|
||||
'--v-divider-label-color': color,
|
||||
'--v-divider-color': 'var(--border-subdued)',
|
||||
@@ -34,13 +34,21 @@ export default defineComponent({
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
marginTop: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.margin {
|
||||
margin-top: 40px;
|
||||
.v-divider {
|
||||
margin-top: 10px;
|
||||
margin-bottom: -10px;
|
||||
}
|
||||
|
||||
.add-margin-top {
|
||||
margin-top: 40px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user