2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +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 flex-1 flex-col">
<!-- Page Header (Title, Buttons, etc) -->
<PageHeader :title="title" :border="false">
<PageHeader :title="title" :border="false" :searchborder="searchborder">
<slot name="header" />
</PageHeader>
@ -34,6 +34,7 @@ export default {
components: { PageHeader },
props: {
title: { type: String, default: '' },
searchborder: { type: Boolean, default: true },
},
};
</script>

View File

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

View File

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