mirror of
https://github.com/frappe/books.git
synced 2025-01-03 07:12:21 +00:00
Merge pull request #970 from akshayitzme/fix-print-template-ui
fix: bottom bar in Print Template not displayed in windows
This commit is contained in:
commit
2ce2664782
@ -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)' : '0px'
|
||||
}`;
|
||||
return styles;
|
||||
},
|
||||
},
|
||||
async mounted() {
|
||||
await this.initialize();
|
||||
|
Loading…
Reference in New Issue
Block a user