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-10-07 15:31:49 +02:00
|
|
|
import * as tr from "../lib/ftl";
|
2021-11-17 04:49:52 +01:00
|
|
|
import Row from "../components/Row.svelte";
|
|
|
|
import Col from "../components/Col.svelte";
|
2021-06-24 06:38:10 +02:00
|
|
|
import TooltipLabel from "./TooltipLabel.svelte";
|
|
|
|
import RevertButton from "./RevertButton.svelte";
|
|
|
|
|
|
|
|
export let value: string;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<Row>
|
|
|
|
<Col>
|
|
|
|
<div class="text">
|
|
|
|
<TooltipLabel markdownTooltip={tr.deckConfigCustomSchedulingTooltip()}>
|
|
|
|
{tr.deckConfigCustomScheduling()}:</TooltipLabel
|
|
|
|
>
|
|
|
|
<RevertButton bind:value defaultValue="" />
|
|
|
|
</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 {
|
|
|
|
min-height: 2em;
|
|
|
|
}
|
2021-10-31 00:29:22 +02:00
|
|
|
|
|
|
|
.card-state-customizer {
|
|
|
|
color: var(--text-fg);
|
|
|
|
background-color: var(--frame-bg);
|
|
|
|
|
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>
|