mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-24 15:51:20 +00:00
web: base custom instance functionality
also: - renamed processing tab in settings to "instances" - improved override description - prefer custom over override (and grey out the option) - dedicated lib for all api safety warnings - left aligned small popup with smaller icon - ability to grey out settings category & toggle
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
<script lang="ts">
|
||||
import { page } from "$app/stores";
|
||||
|
||||
export let sectionId: string;
|
||||
export let title: string;
|
||||
export let sectionId: string;
|
||||
|
||||
export let disabled = false;
|
||||
|
||||
let animate = false;
|
||||
|
||||
@@ -17,6 +19,8 @@
|
||||
id={sectionId}
|
||||
class="settings-content"
|
||||
class:animate
|
||||
class:disabled
|
||||
aria-hidden={disabled}
|
||||
>
|
||||
<h3 class="settings-content-title">{title}</h3>
|
||||
<slot></slot>
|
||||
@@ -29,6 +33,11 @@
|
||||
gap: var(--padding);
|
||||
padding: calc(var(--settings-padding) / 2);
|
||||
border-radius: 18px;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.settings-content.disabled {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.settings-content.animate {
|
||||
|
||||
Reference in New Issue
Block a user