Fixed unnecessary styling
This commit is contained in:
parent
8b1654fc16
commit
608cef5827
1 changed files with 12 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import './Row.sass'
|
import './Row.sass'
|
||||||
// import { Switch, Match } from 'solid-js'
|
import { Show } from 'solid-js'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
children: any
|
children: any
|
||||||
|
|
@ -10,9 +10,17 @@ interface Props {
|
||||||
export default (props: Props) => {
|
export default (props: Props) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<Show when={props.gap}>
|
||||||
<div class={props.content} style={`gap: ${props.gap}rem`}>
|
<div class={props.content} style={`gap: ${props.gap}rem`}>
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
|
</Show>
|
||||||
|
|
||||||
|
<Show when={!props.gap}>
|
||||||
|
<div class={props.content} >
|
||||||
|
{props.children}
|
||||||
|
</div>
|
||||||
|
</Show>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue