2021-06-24 06:38:10 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
|
|
|
<script lang="ts">
|
2023-09-09 01:00:55 +02:00
|
|
|
import ConfigInput from "../components/ConfigInput.svelte";
|
|
|
|
import RevertButton from "../components/RevertButton.svelte";
|
2021-06-24 06:38:10 +02:00
|
|
|
|
|
|
|
export let value: string;
|
2022-10-25 08:18:50 +02:00
|
|
|
export let title: string;
|
2021-06-24 06:38:10 +02:00
|
|
|
</script>
|
|
|
|
|
2023-09-16 08:09:26 +02:00
|
|
|
<div class="m-2">
|
|
|
|
<ConfigInput>
|
|
|
|
<RevertButton slot="revert" bind:value defaultValue="" />
|
|
|
|
<details>
|
|
|
|
<summary>{title}</summary>
|
|
|
|
<div class="text">
|
|
|
|
<textarea
|
|
|
|
class="card-state-customizer form-control"
|
|
|
|
bind:value
|
|
|
|
spellcheck="false"
|
|
|
|
autocapitalize="none"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
</ConfigInput>
|
|
|
|
</div>
|
2021-06-24 06:38:10 +02:00
|
|
|
|
2021-06-24 10:06:22 +02:00
|
|
|
<style lang="scss">
|
2021-06-24 06:38:10 +02:00
|
|
|
.text {
|
2022-10-25 08:18:50 +02:00
|
|
|
width: 100%;
|
2021-06-24 06:38:10 +02:00
|
|
|
min-height: 2em;
|
|
|
|
}
|
2021-10-31 00:29:22 +02:00
|
|
|
|
|
|
|
.card-state-customizer {
|
2022-10-25 08:18:50 +02:00
|
|
|
background-color: var(--canvas-code);
|
|
|
|
border: 1px solid var(--border-subtle);
|
2021-06-24 06:38:10 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 10em;
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
2021-06-24 10:06:22 +02:00
|
|
|
|
|
|
|
@supports (-webkit-touch-callout: none) {
|
|
|
|
// mobile compat
|
2021-10-31 00:29:22 +02:00
|
|
|
.card-state-customizer {
|
2021-06-24 10:06:22 +02:00
|
|
|
font-size: 16px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
}
|
2021-06-24 06:38:10 +02:00
|
|
|
</style>
|