summaryrefslogtreecommitdiff
path: root/src/client/app/common
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2018-12-09 14:24:24 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2018-12-09 14:24:24 +0900
commit7e1cad3e1205d58159a2090d2e7de7588fe8bf07 (patch)
treed3e278b027d5e71d3df14cbc9402b7d682887d4b /src/client/app/common
parentMerge pull request #3565 from syuilo/l10n_develop (diff)
downloadmisskey-7e1cad3e1205d58159a2090d2e7de7588fe8bf07.tar.gz
misskey-7e1cad3e1205d58159a2090d2e7de7588fe8bf07.tar.bz2
misskey-7e1cad3e1205d58159a2090d2e7de7588fe8bf07.zip
Improve tags settings (#3569)
Diffstat (limited to 'src/client/app/common')
-rw-r--r--src/client/app/common/views/components/ui/textarea.vue12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/ui/textarea.vue b/src/client/app/common/views/components/ui/textarea.vue
index 0bdd4aadd0..d265c7ac6d 100644
--- a/src/client/app/common/views/components/ui/textarea.vue
+++ b/src/client/app/common/views/components/ui/textarea.vue
@@ -1,5 +1,5 @@
<template>
-<div class="ui-textarea" :class="{ focused, filled, tall }">
+<div class="ui-textarea" :class="{ focused, filled, tall, pre }">
<div class="input">
<span class="label" ref="label"><slot></slot></span>
<textarea ref="input"
@@ -46,6 +46,11 @@ export default Vue.extend({
required: false,
default: false
},
+ pre: {
+ type: Boolean,
+ required: false,
+ default: false
+ },
},
data() {
return {
@@ -175,6 +180,11 @@ root(fill)
> textarea
min-height 200px
+ &.pre
+ > .input
+ > textarea
+ white-space pre
+
.ui-textarea.fill
root(true)