2
0
mirror of https://github.com/frappe/books.git synced 2025-01-03 07:12:21 +00:00

fix: bottom bar visibility issue in windows

This commit is contained in:
akshayitzme 2024-10-08 12:55:19 +05:30
parent d9e133053e
commit 67b3ec2c67

View File

@ -40,7 +40,7 @@
<!-- Template Display Area -->
<div
class="overflow-auto no-scrollbar flex flex-col"
style="height: calc(100vh - var(--h-row-largest) - 1px)"
:style="templateDisplayStyles"
>
<!-- Template Container -->
<div
@ -151,7 +151,7 @@
dark:bg-gray-890
flex flex-col
"
style="height: calc(100vh - var(--h-row-largest) - 1px)"
:style="templateDisplayStyles"
>
<!-- Template Editor -->
<div class="min-h-0">
@ -478,6 +478,14 @@ export default defineComponent({
return styles;
},
templateDisplayStyles(): Record<string, string> {
const styles: Record<string, string> = {};
styles.height = `calc(100vh - var(--h-row-largest) - 1px - ${
this.platform == 'Windows' ? 'var(--h-row-smallest)' : 0
}`;
return styles;
},
},
async mounted() {
await this.initialize();