enhance(client): 投稿フォームをちょっといい感じに (#10442)
* .formラッパーを削除 * fix type of MkPostFormAttaches * 🚀 * 🎨 * 🎨 * 🎨 * 🎨 * specifiedの時は連合なしをdisabledに * ✌️ * set select default * gap: 2px (max-width: 500px) / 4px * wip * ✌️ * 🎨 * fix maxTextLength * 今後表示しない * 🎨 * cache channel * 🎨 * 連合なしにする * use i18n.ts.neverShow * ✌️ * refactor * fix indent * tweak --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
@@ -215,6 +215,7 @@ export function actions<T extends {
|
||||
value: string;
|
||||
text: string;
|
||||
primary?: boolean,
|
||||
danger?: boolean,
|
||||
}[]>(props: {
|
||||
type: 'error' | 'info' | 'success' | 'warning' | 'waiting' | 'question';
|
||||
title?: string | null;
|
||||
@@ -229,6 +230,7 @@ export function actions<T extends {
|
||||
actions: props.actions.map(a => ({
|
||||
text: a.text,
|
||||
primary: a.primary,
|
||||
danger: a.danger,
|
||||
callback: () => {
|
||||
resolve({ canceled: false, result: a.value });
|
||||
},
|
||||
|
Reference in New Issue
Block a user