diff options
| author | 果物リン <nassii74@gmail.com> | 2023-12-16 14:13:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-16 14:13:38 +0900 |
| commit | c167f206436d43e19f113fab515ff9de524333ac (patch) | |
| tree | e9697b532c95dcec84082c29651e8816cfe3bf1a /packages | |
| parent | 2023.12.0-beta.5 (diff) | |
| download | sharkey-c167f206436d43e19f113fab515ff9de524333ac.tar.gz sharkey-c167f206436d43e19f113fab515ff9de524333ac.tar.bz2 sharkey-c167f206436d43e19f113fab515ff9de524333ac.zip | |
feature: チャンネル投稿はフォームに色がつくとうれしい (#12686)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/frontend/src/components/MkPostForm.vue | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 4a1930ac0b..8a2a21a89e 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -67,6 +67,7 @@ SPDX-License-Identifier: AGPL-3.0-only <MkInfo v-if="hasNotSpecifiedMentions" warn :class="$style.hasNotSpecifiedMentions">{{ i18n.ts.notSpecifiedMentionWarning }} - <button class="_textButton" @click="addMissingMention()">{{ i18n.ts.add }}</button></MkInfo> <input v-show="useCw" ref="cwInputEl" v-model="cw" :class="$style.cw" :placeholder="i18n.ts.annotation" @keydown="onKeydown"> <div :class="[$style.textOuter, { [$style.withCw]: useCw }]"> + <div v-if="channel" :class="$style.colorBar" :style="{ background: channel.color }"></div> <textarea ref="textareaEl" v-model="text" :class="[$style.text]" :disabled="posting || posted" :readonly="textAreaReadOnly" :placeholder="placeholder" data-cy-post-form-text @keydown="onKeydown" @paste="onPaste" @compositionupdate="onCompositionUpdate" @compositionend="onCompositionEnd"/> <div v-if="maxTextLength - textLength < 100" :class="['_acrylic', $style.textCount, { [$style.textOver]: textLength > maxTextLength }]">{{ maxTextLength - textLength }}</div> </div> @@ -1038,6 +1039,17 @@ defineExpose({ } } + +.colorBar { + position: absolute; + top: 0px; + left: 12px; + width: 5px; + height: 100% ; + border-radius: 999px; + pointer-events: none; +} + .submitInner { padding: 0 12px; line-height: 34px; @@ -1296,5 +1308,6 @@ defineExpose({ .headerRight { gap: 0; } + } </style> |