feat: allow new confg
This commit is contained in:
@@ -170,6 +170,10 @@ const shouldShowCannedResponses = computed(() => {
|
||||
});
|
||||
|
||||
const editorMenuOptions = computed(() => {
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
if (window.__WOOT_ISOLATED_SHELL__) {
|
||||
return [];
|
||||
}
|
||||
return props.enabledMenuOptions.length
|
||||
? props.enabledMenuOptions
|
||||
: MESSAGE_EDITOR_MENU_OPTIONS;
|
||||
@@ -657,7 +661,7 @@ watch(sendWithSignature, newValue => {
|
||||
}
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
// [VITE] state assignment was done in created before
|
||||
state = createState(
|
||||
props.modelValue,
|
||||
@@ -738,6 +742,10 @@ useEmitter(BUS_EVENTS.INSERT_INTO_RICH_EDITOR, insertContentIntoEditor);
|
||||
.ProseMirror-menubar-wrapper {
|
||||
@apply flex flex-col;
|
||||
|
||||
.ProseMirror-menubar:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ProseMirror-menubar {
|
||||
min-height: var(--space-two) !important;
|
||||
@apply -ml-2.5 pb-0 bg-transparent text-n-slate-11;
|
||||
|
||||
@@ -99,7 +99,7 @@ useInfiniteScroll(messageListRef, useThrottleFn(fetchMore, 1000), {
|
||||
<div class="relative">
|
||||
<ul
|
||||
ref="messageListRef"
|
||||
class="px-4 pt-4 flex flex-col-reverse pb-64 bg-n-background overflow-scroll h-screen"
|
||||
class="px-4 pt-4 flex flex-col-reverse pb-60 bg-n-background overflow-scroll h-screen"
|
||||
>
|
||||
<div
|
||||
v-if="isAnyoneTyping"
|
||||
|
||||
Reference in New Issue
Block a user