fix(frontend): ファイルの添付可能数を超えたらノートボタンを押せないように (#15126)

* fix(frontend): ファイルの添付可能数を超えたらノートボタンを押せないように

* Update Changelog

* Update MkPostForm.vue
This commit is contained in:
かっこかり
2025-01-04 15:24:25 +09:00
committed by GitHub
parent 256560e8ba
commit 1fbc129d7b
3 changed files with 9 additions and 1 deletions

View File

@@ -22,7 +22,9 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</template>
</Sortable>
<p :class="$style.remain">{{ 16 - props.modelValue.length }}/16</p>
<p :class="[$style.remain, {
[$style.exceeded]: props.modelValue.length > 16,
}]">{{ 16 - props.modelValue.length }}/16</p>
</div>
</template>
@@ -239,5 +241,9 @@ function showFileMenu(file: Misskey.entities.DriveFile, ev: MouseEvent | Keyboar
margin: 0;
padding: 0;
font-size: 90%;
&.exceeded {
color: var(--MI_THEME-error);
}
}
</style>