Skip to content

Commit

Permalink
fix: generator hide
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed Feb 24, 2024
1 parent 6045761 commit 47f9af5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,16 @@ export default (): m.Component<SidebarPrintProps> => {
: null, //
// @ts-ignore
m(Flex, { className: '.bg-white.ba.b--black-10.br2.flex-grow-1.overflow-auto', direction: 'column' }, vnode.attrs.content[selectedTab]()),
(vnode.attrs.template || vnode.attrs.generator) && !vnode.attrs.hidePreview
vnode.attrs.template || vnode.attrs.generator
? m(PrintPreviewTemplate, {
template: vnode.attrs.template,
generator: vnode.attrs.generator,
it: vnode.attrs.it,
entry: vnode.attrs.entry,
config: vnode.attrs.config,
width: 380,
className: '.bg-black-05.ph1.ba.b--black-10',
className: `.bg-black-05.ph1.ba.b--black-10${!vnode.attrs.hidePreview ? '' : '.o-0'}`,

onRendered: vnode.attrs.onRendered,
})
: m('div'),
Expand Down

0 comments on commit 47f9af5

Please sign in to comment.