mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
refac: message input mobile detection behaviour
This commit is contained in:
parent
6c8c3257fd
commit
557367cf48
2 changed files with 12 additions and 12 deletions
|
|
@ -876,12 +876,12 @@
|
||||||
richText={$settings?.richTextInput ?? true}
|
richText={$settings?.richTextInput ?? true}
|
||||||
showFormattingToolbar={$settings?.showFormattingToolbar ?? false}
|
showFormattingToolbar={$settings?.showFormattingToolbar ?? false}
|
||||||
shiftEnter={!($settings?.ctrlEnterToSend ?? false) &&
|
shiftEnter={!($settings?.ctrlEnterToSend ?? false) &&
|
||||||
(!$mobile ||
|
!$mobile &&
|
||||||
!(
|
!(
|
||||||
'ontouchstart' in window ||
|
'ontouchstart' in window ||
|
||||||
navigator.maxTouchPoints > 0 ||
|
navigator.maxTouchPoints > 0 ||
|
||||||
navigator.msMaxTouchPoints > 0
|
navigator.msMaxTouchPoints > 0
|
||||||
))}
|
)}
|
||||||
largeTextAsFile={$settings?.largeTextAsFile ?? false}
|
largeTextAsFile={$settings?.largeTextAsFile ?? false}
|
||||||
floatingMenuPlacement={'top-start'}
|
floatingMenuPlacement={'top-start'}
|
||||||
{suggestions}
|
{suggestions}
|
||||||
|
|
|
||||||
|
|
@ -1201,12 +1201,12 @@
|
||||||
floatingMenuPlacement={'top-start'}
|
floatingMenuPlacement={'top-start'}
|
||||||
insertPromptAsRichText={$settings?.insertPromptAsRichText ?? false}
|
insertPromptAsRichText={$settings?.insertPromptAsRichText ?? false}
|
||||||
shiftEnter={!($settings?.ctrlEnterToSend ?? false) &&
|
shiftEnter={!($settings?.ctrlEnterToSend ?? false) &&
|
||||||
(!$mobile ||
|
!$mobile &&
|
||||||
!(
|
!(
|
||||||
'ontouchstart' in window ||
|
'ontouchstart' in window ||
|
||||||
navigator.maxTouchPoints > 0 ||
|
navigator.maxTouchPoints > 0 ||
|
||||||
navigator.msMaxTouchPoints > 0
|
navigator.msMaxTouchPoints > 0
|
||||||
))}
|
)}
|
||||||
placeholder={placeholder ? placeholder : $i18n.t('Send a Message')}
|
placeholder={placeholder ? placeholder : $i18n.t('Send a Message')}
|
||||||
largeTextAsFile={($settings?.largeTextAsFile ?? false) && !shiftKey}
|
largeTextAsFile={($settings?.largeTextAsFile ?? false) && !shiftKey}
|
||||||
autocomplete={$config?.features?.enable_autocomplete_generation &&
|
autocomplete={$config?.features?.enable_autocomplete_generation &&
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue