mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac: styling
This commit is contained in:
parent
8d84b4c2a4
commit
45d58e73a9
2 changed files with 13 additions and 6 deletions
|
|
@ -98,6 +98,7 @@
|
||||||
|
|
||||||
export let className = 'input-prose';
|
export let className = 'input-prose';
|
||||||
export let placeholder = 'Type here...';
|
export let placeholder = 'Type here...';
|
||||||
|
export let link = false;
|
||||||
|
|
||||||
export let id = '';
|
export let id = '';
|
||||||
export let value = '';
|
export let value = '';
|
||||||
|
|
@ -486,10 +487,7 @@
|
||||||
Highlight,
|
Highlight,
|
||||||
Typography,
|
Typography,
|
||||||
Underline,
|
Underline,
|
||||||
Link.configure({
|
|
||||||
openOnClick: true,
|
|
||||||
linkOnPaste: true
|
|
||||||
}),
|
|
||||||
Placeholder.configure({ placeholder }),
|
Placeholder.configure({ placeholder }),
|
||||||
Table.configure({ resizable: true }),
|
Table.configure({ resizable: true }),
|
||||||
TableRow,
|
TableRow,
|
||||||
|
|
@ -500,6 +498,14 @@
|
||||||
nested: true
|
nested: true
|
||||||
}),
|
}),
|
||||||
CharacterCount.configure({}),
|
CharacterCount.configure({}),
|
||||||
|
...(link
|
||||||
|
? [
|
||||||
|
Link.configure({
|
||||||
|
openOnClick: true,
|
||||||
|
linkOnPaste: true
|
||||||
|
})
|
||||||
|
]
|
||||||
|
: []),
|
||||||
...(autocomplete
|
...(autocomplete
|
||||||
? [
|
? [
|
||||||
AIAutocompletion.configure({
|
AIAutocompletion.configure({
|
||||||
|
|
@ -536,9 +542,9 @@
|
||||||
tippyOptions: {
|
tippyOptions: {
|
||||||
duration: 100,
|
duration: 100,
|
||||||
arrow: false,
|
arrow: false,
|
||||||
placement: 'top-start',
|
placement: 'bottom-start',
|
||||||
theme: 'transparent',
|
theme: 'transparent',
|
||||||
offset: [-10, 2]
|
offset: [-12, 4]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -947,6 +947,7 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
|
||||||
bind:value={note.data.content.json}
|
bind:value={note.data.content.json}
|
||||||
html={note.data?.content?.html}
|
html={note.data?.content?.html}
|
||||||
json={true}
|
json={true}
|
||||||
|
link={true}
|
||||||
placeholder={$i18n.t('Write something...')}
|
placeholder={$i18n.t('Write something...')}
|
||||||
editable={versionIdx === null && !enhancing}
|
editable={versionIdx === null && !enhancing}
|
||||||
onChange={(content) => {
|
onChange={(content) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue