2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00

fix(ui): remove search border-l when Settings

This commit is contained in:
18alantom 2022-07-18 13:17:20 +05:30
parent a666253816
commit 3717b7d23b
3 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<div class="flex bg-gray-25"> <div class="flex bg-gray-25">
<div class="flex flex-1 flex-col"> <div class="flex flex-1 flex-col">
<!-- Page Header (Title, Buttons, etc) --> <!-- Page Header (Title, Buttons, etc) -->
<PageHeader :title="title" :border="false"> <PageHeader :title="title" :border="false" :searchborder="searchborder">
<slot name="header" /> <slot name="header" />
</PageHeader> </PageHeader>
@ -34,6 +34,7 @@ export default {
components: { PageHeader }, components: { PageHeader },
props: { props: {
title: { type: String, default: '' }, title: { type: String, default: '' },
searchborder: { type: Boolean, default: true },
}, },
}; };
</script> </script>

View File

@ -32,11 +32,12 @@ export default {
backLink: { type: Boolean, default: true }, backLink: { type: Boolean, default: true },
hideSearch: { type: Boolean, default: false }, hideSearch: { type: Boolean, default: false },
border: { type: Boolean, default: true }, border: { type: Boolean, default: true },
searchborder: { type: Boolean, default: true },
}, },
components: { SearchBar, BackLink }, components: { SearchBar, BackLink },
computed: { computed: {
showBorder() { showBorder() {
return !!this.$slots.default; return !!this.$slots.default && this.searchborder;
}, },
}, },
}; };

View File

@ -1,5 +1,5 @@
<template> <template>
<FormContainer :title="t`Settings`"> <FormContainer :title="t`Settings`" :searchborder="false">
<template #body> <template #body>
<!-- Icon Tab Bar --> <!-- Icon Tab Bar -->
<div class="flex justify-around mb-2 mt-4"> <div class="flex justify-around mb-2 mt-4">