nbsp in dynamic grid
This commit is contained in:
parent
6631bd7980
commit
e426b0f4d8
@ -1,7 +1,7 @@
|
||||
import type { FlatTemplatable } from "tempstream";
|
||||
import { TempstreamJSX } from "tempstream";
|
||||
import type { ComponentToHTMLArgs, ExtractParsed, JDDContext } from "@sealcode/jdd";
|
||||
import { Component, ComponentArguments } from "@sealcode/jdd";
|
||||
import { Component, ComponentArguments, insert_nbsp } from "@sealcode/jdd";
|
||||
import { getFgColorVariable } from "src/back/colors.js";
|
||||
|
||||
type ExtractArray<T> = T extends Array<infer X> ? X : never;
|
||||
@ -60,9 +60,13 @@ export class DynamicGridV2 extends Component<typeof component_arguments> {
|
||||
>
|
||||
<div class="tile-content">
|
||||
<div class="tile-content-wrapper">
|
||||
{tile.title ? <h3 class="tile-title">{tile.title}</h3> : ""}
|
||||
{tile.title ? (
|
||||
<h3 class="tile-title">{insert_nbsp(tile.title)}</h3>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
{tile.subtitle ? (
|
||||
<p class="tile-subtitle">{tile.subtitle}</p>
|
||||
<p class="tile-subtitle">{insert_nbsp(tile.subtitle)}</p>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user