set defaults

This commit is contained in:
Xymorot 2019-06-18 20:12:56 +02:00
parent b6e4d4e941
commit d5d84aed78
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ main {
</style>
<main>
<Divide mode="v">
<Divide>
<div slot="1">
<h1>Hello World</h1>
<p>{ text }</p>

View File

@ -15,8 +15,8 @@ $: style = s({
'--divide-size': `${size}px`,
'--divide-basis-first': `${basisFirst * 100}%`,
'--divide-basis-second': `${basisSecond * 100}%`,
'--divide-min-width': minSize > 0 && mode === 'h' ? `${minSize}px` : false,
'--divide-min-height': minSize > 0 && mode === 'v' ? `${minSize}px` : false,
'--divide-min-width': minSize > 0 && mode === 'h' ? `${minSize}px` : '0',
'--divide-min-height': minSize > 0 && mode === 'v' ? `${minSize}px` : '0',
});
$: total = getTotal();