Commit b053b421 by Archer Committed by GitHub

mobile voice input (#7215)

* mobile voice input

* fix: action
parent 50d29b0c
......@@ -68,7 +68,7 @@ jobs:
org.opencontainers.image.revision=${{ github.event.pull_request.head.sha }}
outputs: type=docker,dest=/tmp/fastgpt-pro-image.tar
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
run: |
......
......@@ -121,7 +121,7 @@ jobs:
org.opencontainers.image.revision=${{ github.event.pull_request.head.sha }}
outputs: type=docker,dest=/tmp/${{ matrix.image_name }}-image.tar
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
run: |
......
Subproject commit f3872efa0979406dd3b0d04b62d845db16c4f47c
Subproject commit 7a41268519c8dab4f1f7fa55edf93869ee507bae
......@@ -536,7 +536,7 @@ const ChatInput = ({
position={'relative'}
borderRadius={['xl', 'xxl']}
bg={'white'}
overflow={'display'}
overflow={mobilePreSpeak ? 'hidden' : 'display'}
{...(focusing
? activeStyles
: {
......
......@@ -240,7 +240,11 @@ const MobileVoiceInput = ({
flex="1 0 0"
bg={isSpeaking ? (isCancel ? 'red.500' : 'primary.500') : 'rgba(255, 255, 255, 0.95)'}
backdropFilter={!isSpeaking ? 'blur(4px)' : 'none'}
borderRadius="xxl"
borderRadius={['xl', 'xxl']}
sx={{
WebkitTapHighlightColor: 'transparent',
WebkitTouchCallout: 'none'
}}
onTouchMove={handleTouchMove}
onTouchEnd={handleTouchEnd}
onTouchStart={handleTouchStart}
......@@ -399,7 +403,7 @@ const VoiceInput = forwardRef<VoiceInputComponentRef, VoiceInputProps>(
bottom={0}
bg="transparent"
zIndex={5}
borderRadius={isPc ? 'md' : ''}
borderRadius={isPc ? 'md' : ['xl', 'xxl']}
onContextMenu={(e) => e.preventDefault()}
>
{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