* [ui] fix ai btn style in doc view.
This commit is contained in:
@@ -961,7 +961,7 @@ const actionsMap =
|
||||
const aiLang = window.docAIPromptLang;
|
||||
const aiActionItems = docAIPrompts.map(prompt => ({icon: 'magic', text: prompt.status !== 'active' ? zui.html`${prompt.name}<span class="label size-sm gray-500-pale ring-gray-500 whitespace-nowrap ml-1">${aiLang.statuses[prompt.status]}</span>` : prompt.name, command: `executeAIPrompt/${prompt.id}/${doc.id}`, hint: prompt.desc}));
|
||||
if(aiActionItems.length === 1) aiAction = aiActionItems[0];
|
||||
else aiAction = {text: aiLang.dropdownTitle || 'AI', type: 'dropdown', rounded: 'lg', placement: 'bottom-end', caret: false, items: aiActionItems};
|
||||
else aiAction = {text: aiLang.dropdownTitle || 'AI', type: 'dropdown', btnType: 'ai-styled', size: 'sm', caret: 'down', placement: 'bottom-end', items: aiActionItems};
|
||||
}
|
||||
|
||||
const actions = isInModal ? [] : [
|
||||
|
||||
Reference in New Issue
Block a user