2
0
mirror of https://github.com/frappe/books.git synced 2024-12-24 11:55:46 +00:00

fix: Add padding to PageHeader

This commit is contained in:
Faris Ansari 2020-02-03 19:03:53 +05:30
parent 827ecfd809
commit 09fe18af5a
7 changed files with 9 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="mt-4 px-8 flex justify-between window-drag"> <div class="py-4 px-8 flex justify-between window-drag">
<div class="window-no-drag"> <div class="window-no-drag">
<slot name="title" /> <slot name="title" />
</div> </div>

View File

@ -8,7 +8,7 @@
<SearchBar class="ml-2" /> <SearchBar class="ml-2" />
</template> </template>
</PageHeader> </PageHeader>
<div class="flex-1 flex px-8 mt-4 overflow-y-auto"> <div class="flex-1 flex px-8 overflow-y-auto">
<div class="flex-1" v-if="root"> <div class="flex-1" v-if="root">
<template v-for="account in allAccounts"> <template v-for="account in allAccounts">
<div <div

View File

@ -6,7 +6,7 @@
<SearchBar class="ml-2" /> <SearchBar class="ml-2" />
</template> </template>
</PageHeader> </PageHeader>
<div class="mt-4 px-8"> <div class="px-8">
<div class="border-t" /> <div class="border-t" />
<Cashflow /> <Cashflow />
<div class="my-10 border-t" /> <div class="my-10 border-t" />

View File

@ -6,7 +6,7 @@
</h1> </h1>
</PageHeader> </PageHeader>
<div class="px-8"> <div class="px-8">
<div class="mt-4 border-t"></div> <div class="border-t"></div>
</div> </div>
<div class="px-8 flex-1 overflow-y-auto"> <div class="px-8 flex-1 overflow-y-auto">
<div class="my-6" v-for="section in sections" :key="section.label"> <div class="my-6" v-for="section in sections" :key="section.label">

View File

@ -24,7 +24,7 @@
</PageHeader> </PageHeader>
<div <div
v-if="doc" v-if="doc"
class="flex justify-center flex-1 mb-8 mt-6" class="flex justify-center flex-1 mb-8 mt-2"
:class="doc.submitted && 'pointer-events-none'" :class="doc.submitted && 'pointer-events-none'"
> >
<div <div

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="px-5 pb-16 mt-2 text-base flex flex-col overflow-y-hidden"> <div class="px-5 pb-16 text-base flex flex-col overflow-y-hidden">
<div class="flex px-3"> <div class="flex px-3">
<div class="py-4 mr-3 w-7" v-if="hasImage"></div> <div class="py-4 mr-3 w-7" v-if="hasImage"></div>
<Row <Row
@ -22,7 +22,7 @@
<div class="overflow-y-auto"> <div class="overflow-y-auto">
<div <div
class="px-3 flex hover:bg-gray-100 rounded-md" class="px-3 flex hover:bg-gray-100 rounded-md"
v-for="(doc, i) in data" v-for="doc in data"
:key="doc.name" :key="doc.name"
> >
<div class="w-7 py-4 mr-3" v-if="hasImage"> <div class="w-7 py-4 mr-3" v-if="hasImage">
@ -52,7 +52,6 @@
import frappe from 'frappejs'; import frappe from 'frappejs';
import Row from '@/components/Row'; import Row from '@/components/Row';
import ListCell from './ListCell'; import ListCell from './ListCell';
import Button from '@/components/Button';
import Avatar from '@/components/Avatar'; import Avatar from '@/components/Avatar';
import { openQuickEdit } from '@/utils'; import { openQuickEdit } from '@/utils';
@ -62,7 +61,6 @@ export default {
components: { components: {
Row, Row,
ListCell, ListCell,
Button,
Avatar Avatar
}, },
watch: { watch: {
@ -90,7 +88,7 @@ export default {
}, },
async mounted() { async mounted() {
await this.setupColumnsAndData(); await this.setupColumnsAndData();
frappe.db.on(`change:${this.listConfig.doctype}`, obj => { frappe.db.on(`change:${this.listConfig.doctype}`, () => {
this.updateData(); this.updateData();
}); });
}, },

View File

@ -6,7 +6,7 @@
<SearchBar class="ml-2" /> <SearchBar class="ml-2" />
</template> </template>
</PageHeader> </PageHeader>
<div class="mt-6 flex text-base px-8" v-if="report.filterFields"> <div class="mt-2 flex text-base px-8" v-if="report.filterFields">
<div <div
class="ml-3 first:ml-0 w-32" class="ml-3 first:ml-0 w-32"
v-for="df in report.filterFields" v-for="df in report.filterFields"