Commit b053b421 by Archer Committed by GitHub

mobile voice input (#7215)

* mobile voice input

* fix: action
parent 50d29b0c
...@@ -68,7 +68,7 @@ jobs: ...@@ -68,7 +68,7 @@ jobs:
org.opencontainers.image.revision=${{ github.event.pull_request.head.sha }} org.opencontainers.image.revision=${{ github.event.pull_request.head.sha }}
outputs: type=docker,dest=/tmp/fastgpt-pro-image.tar outputs: type=docker,dest=/tmp/fastgpt-pro-image.tar
cache-from: type=gha,scope=fastgpt-pro cache-from: type=gha,scope=fastgpt-pro
cache-to: type=gha,mode=max,scope=fastgpt-pro cache-to: type=gha,mode=max,scope=fastgpt-pro,ignore-error=true
- name: Save PR metadata - name: Save PR metadata
run: | run: |
......
...@@ -121,7 +121,7 @@ jobs: ...@@ -121,7 +121,7 @@ jobs:
org.opencontainers.image.revision=${{ github.event.pull_request.head.sha }} org.opencontainers.image.revision=${{ github.event.pull_request.head.sha }}
outputs: type=docker,dest=/tmp/${{ matrix.image_name }}-image.tar outputs: type=docker,dest=/tmp/${{ matrix.image_name }}-image.tar
cache-from: type=gha,scope=${{ matrix.image }} cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,mode=max,scope=${{ matrix.image }} cache-to: type=gha,mode=max,scope=${{ matrix.image }},ignore-error=true
- name: Save PR metadata - name: Save PR metadata
run: | run: |
......
Subproject commit f3872efa0979406dd3b0d04b62d845db16c4f47c Subproject commit 7a41268519c8dab4f1f7fa55edf93869ee507bae
...@@ -536,7 +536,7 @@ const ChatInput = ({ ...@@ -536,7 +536,7 @@ const ChatInput = ({
position={'relative'} position={'relative'}
borderRadius={['xl', 'xxl']} borderRadius={['xl', 'xxl']}
bg={'white'} bg={'white'}
overflow={'display'} overflow={mobilePreSpeak ? 'hidden' : 'display'}
{...(focusing {...(focusing
? activeStyles ? activeStyles
: { : {
......
...@@ -240,7 +240,11 @@ const MobileVoiceInput = ({ ...@@ -240,7 +240,11 @@ const MobileVoiceInput = ({
flex="1 0 0" flex="1 0 0"
bg={isSpeaking ? (isCancel ? 'red.500' : 'primary.500') : 'rgba(255, 255, 255, 0.95)'} bg={isSpeaking ? (isCancel ? 'red.500' : 'primary.500') : 'rgba(255, 255, 255, 0.95)'}
backdropFilter={!isSpeaking ? 'blur(4px)' : 'none'} backdropFilter={!isSpeaking ? 'blur(4px)' : 'none'}
borderRadius="xxl" borderRadius={['xl', 'xxl']}
sx={{
WebkitTapHighlightColor: 'transparent',
WebkitTouchCallout: 'none'
}}
onTouchMove={handleTouchMove} onTouchMove={handleTouchMove}
onTouchEnd={handleTouchEnd} onTouchEnd={handleTouchEnd}
onTouchStart={handleTouchStart} onTouchStart={handleTouchStart}
...@@ -399,7 +403,7 @@ const VoiceInput = forwardRef<VoiceInputComponentRef, VoiceInputProps>( ...@@ -399,7 +403,7 @@ const VoiceInput = forwardRef<VoiceInputComponentRef, VoiceInputProps>(
bottom={0} bottom={0}
bg="transparent" bg="transparent"
zIndex={5} zIndex={5}
borderRadius={isPc ? 'md' : ''} borderRadius={isPc ? 'md' : ['xl', 'xxl']}
onContextMenu={(e) => e.preventDefault()} onContextMenu={(e) => e.preventDefault()}
> >
{isMobileDevice ? ( {isMobileDevice ? (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment