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">
|
2021-11-17 04:49:52 +01:00
|
|
|
import Col from "../components/Col.svelte";
|
2023-09-09 01:00:55 +02:00
|
|
|
import ConfigInput from "../components/ConfigInput.svelte";
|
|
|
|
import RevertButton from "../components/RevertButton.svelte";
|
2022-02-04 09:36:34 +01:00
|
|
|
import Row from "../components/Row.svelte";
|
2023-09-09 01:00:55 +02:00
|
|
|
import SettingTitle from "../components/SettingTitle.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>
|
|
|
|
|
|
|
|
<Row>
|
|
|
|
<Col>
|
|
|
|
<div class="text">
|
2022-10-25 08:18:50 +02:00
|
|
|
<ConfigInput>
|
|
|
|
<SettingTitle on:click>{title}</SettingTitle>
|
|
|
|
<RevertButton slot="revert" bind:value defaultValue="" />
|
|
|
|
</ConfigInput>
|
2021-06-24 06:38:10 +02:00
|
|
|
</div>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
|
2021-10-31 00:29:22 +02:00
|
|
|
<textarea
|
|
|
|
class="card-state-customizer form-control"
|
|
|
|
bind:value
|
|
|
|
spellcheck="false"
|
|
|
|
autocapitalize="none"
|
|
|
|
/>
|
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>
|