forked from MapComplete/MapComplete
Themes(school): add invalidValues for conflicting uniform values
This commit is contained in:
parent
a42e1f8161
commit
31312c2dc6
4 changed files with 17 additions and 3 deletions
|
|
@ -7,7 +7,7 @@
|
|||
import { MinimalThemeInformation } from "../../Models/ThemeConfig/ThemeConfig"
|
||||
import Translations from "../i18n/Translations"
|
||||
import Tr from "../Base/Tr.svelte"
|
||||
import { twMerge } from "tailwind-merge"
|
||||
import { Utils } from "../../Utils"
|
||||
|
||||
export let search: UIEventSource<string> = new UIEventSource<string>(undefined)
|
||||
export let themes: MinimalThemeInformation[]
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
<slot name="title" />
|
||||
<div
|
||||
class={onlyIcons ? "flex gap-x-2 flex-wrap items-center justify-center" : ("theme-list my-2 gap-4 md:grid md:grid-flow-row md:grid-cols-2 lg:grid-cols-3")}>
|
||||
{#each themes as theme (theme.id)}
|
||||
{#each Utils.NoNull(themes) as theme (theme.id)}
|
||||
<ThemeButton {theme} {state} iconOnly={onlyIcons}>
|
||||
{#if $search && hasSelection && themes?.[0] === theme}
|
||||
<span class="thanks hidden-on-mobile" aria-hidden="true">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue