fix: removed default padding from settings page

This commit is contained in:
Shariq Ansari 2024-06-13 15:46:25 +05:30
parent e59d9b1426
commit 5098457107
6 changed files with 13 additions and 8 deletions

View File

@ -136,7 +136,7 @@ const _fields = computed(() => {
let all_fields = []
props.fields?.forEach((field) => {
let df = field.all_properties
if (df.depends_on) evaluate_depends_on(df.depends_on, field)
if (df?.depends_on) evaluate_depends_on(df.depends_on, field)
all_fields.push(field)
})
return all_fields

View File

@ -1,5 +1,5 @@
<template>
<div v-if="profile" class="flex w-full items-center justify-between">
<div v-if="profile" class="flex w-full items-center justify-between p-12 pt-14">
<div class="flex items-center gap-4">
<Avatar
class="!size-16"

View File

@ -40,7 +40,7 @@
/>
</nav>
</div>
<div class="flex flex-1 flex-col overflow-y-auto p-8">
<div class="flex flex-1 flex-col overflow-y-auto">
<component :is="activeTab.component" v-if="activeTab" />
</div>
</div>

View File

@ -3,10 +3,10 @@
<h2 class="flex gap-2 text-xl font-semibold leading-none">
<div>{{ __(doctype) }}</div>
<Badge
v-if="data.isDirty"
:label="__('Not Saved')"
variant="subtle"
theme="orange"
v-if="data.isDirty"
/>
</h2>
<div v-if="!data.get.loading" class="flex-1 overflow-y-auto">
@ -17,7 +17,7 @@
/>
</div>
<div v-else class="flex flex-1 items-center justify-center">
<Spinner />
<Spinner class="size-8" />
</div>
<div class="flex flex-row-reverse">
<Button
@ -31,7 +31,12 @@
</template>
<script setup>
import Fields from '@/components/Fields.vue'
import { createDocumentResource, createResource, Spinner, Badge } from 'frappe-ui'
import {
createDocumentResource,
createResource,
Spinner,
Badge,
} from 'frappe-ui'
import { computed } from 'vue'
const props = defineProps({

View File

@ -1,5 +1,5 @@
<template>
<SettingsPage doctype="Twilio Settings" />
<SettingsPage doctype="Twilio Settings" class="p-8" />
</template>
<script setup>
import SettingsPage from '@/components/Settings/SettingsPage.vue'

View File

@ -1,5 +1,5 @@
<template>
<SettingsPage doctype="WhatsApp Settings" />
<SettingsPage doctype="WhatsApp Settings" class="p-8" />
</template>
<script setup>
import SettingsPage from '@/components/Settings/SettingsPage.vue'