Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
9b73d3f7
authored
Jun 08, 2025
by
Archer
Committed by
GitHub
Jun 08, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ui (#4979)
parent
7494ce84
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
package.json
+5
-3
projects/app/src/pageComponents/app/detail/Workflow/components/SaveButton.tsx
+9
-10
projects/app/src/web/styles/chakraui.scss
+4
-0
No files found.
package.json
View file @
9b73d3f7
...
@@ -38,10 +38,12 @@
...
@@ -38,10 +38,12 @@
},
},
"lint-staged"
:
{
"lint-staged"
:
{
"./**/**/*.{ts,tsx,scss}"
:
[
"./**/**/*.{ts,tsx,scss}"
:
[
"npm run format-code"
,
"pnpm format-code"
"npm run lint:fix"
],
],
"./docSite/**/**/*.md"
:
"npm run format-doc && npm run gen:llms"
"./**/**/*.{ts,tsx}"
:
[
"pnpm lint:fix"
],
"./docSite/**/**/*.md"
:
"pnpm format-doc && pnpm gen:llms"
},
},
"resolutions"
:
{
"resolutions"
:
{
"mdast-util-gfm-autolink-literal"
:
"2.0.0"
"mdast-util-gfm-autolink-literal"
:
"2.0.0"
...
...
projects/app/src/pageComponents/app/detail/Workflow/components/SaveButton.tsx
View file @
9b73d3f7
import
{
Box
,
Button
,
Flex
,
useDisclosure
}
from
'@chakra-ui/react'
;
import
{
Box
,
Button
,
HStack
,
useDisclosure
}
from
'@chakra-ui/react'
;
import
MyPopover
from
'@fastgpt/web/components/common/MyPopover'
;
import
MyPopover
from
'@fastgpt/web/components/common/MyPopover'
;
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
MyIcon
from
'@fastgpt/web/components/common/Icon'
;
import
MyIcon
from
'@fastgpt/web/components/common/Icon'
;
...
@@ -59,9 +59,9 @@ const SaveButton = ({
...
@@ -59,9 +59,9 @@ const SaveButton = ({
<
Box
p=
{
1.5
}
>
<
Box
p=
{
1.5
}
>
<
MyBox
<
MyBox
display=
{
'flex'
}
display=
{
'flex'
}
size=
{
'md
'
}
alignItems=
{
'center
'
}
px=
{
1
}
gap=
{
2
}
p
y
=
{
1.5
}
p=
{
1.5
}
rounded=
{
'4px'
}
rounded=
{
'4px'
}
_hover=
{
{
color
:
'primary.600'
,
bg
:
'rgba(17, 24, 36, 0.05)'
}
}
_hover=
{
{
color
:
'primary.600'
,
bg
:
'rgba(17, 24, 36, 0.05)'
}
}
cursor=
{
'pointer'
}
cursor=
{
'pointer'
}
...
@@ -78,12 +78,11 @@ const SaveButton = ({
...
@@ -78,12 +78,11 @@ const SaveButton = ({
setIsSave
(
false
);
setIsSave
(
false
);
}
}
}
}
>
>
<
MyIcon
name=
{
'core/workflow/upload'
}
w=
{
'1
6px'
}
mr=
{
2
}
/>
<
MyIcon
name=
{
'core/workflow/upload'
}
w=
{
'1
rem'
}
/>
<
Box
fontSize=
{
'sm'
}
>
{
t
(
'common:core.workflow.Save to cloud'
)
}
</
Box
>
<
Box
fontSize=
{
'sm'
}
>
{
t
(
'common:core.workflow.Save to cloud'
)
}
</
Box
>
</
MyBox
>
</
MyBox
>
<
Flex
<
HStack
px=
{
1
}
p=
{
1.5
}
py=
{
1.5
}
rounded=
{
'4px'
}
rounded=
{
'4px'
}
_hover=
{
{
color
:
'primary.600'
,
bg
:
'rgba(17, 24, 36, 0.05)'
}
}
_hover=
{
{
color
:
'primary.600'
,
bg
:
'rgba(17, 24, 36, 0.05)'
}
}
cursor=
{
'pointer'
}
cursor=
{
'pointer'
}
...
@@ -96,7 +95,7 @@ const SaveButton = ({
...
@@ -96,7 +95,7 @@ const SaveButton = ({
setIsSave
(
false
);
setIsSave
(
false
);
}
}
}
}
>
>
<
MyIcon
name=
{
'core/workflow/publish'
}
w=
{
'1
6px'
}
mr=
{
2
}
/>
<
MyIcon
name=
{
'core/workflow/publish'
}
w=
{
'1
rem'
}
/>
<
Box
fontSize=
{
'sm'
}
>
{
t
(
'common:core.workflow.Save and publish'
)
}
</
Box
>
<
Box
fontSize=
{
'sm'
}
>
{
t
(
'common:core.workflow.Save and publish'
)
}
</
Box
>
{
isSaveAndPublishModalOpen
&&
(
{
isSaveAndPublishModalOpen
&&
(
<
SaveAndPublishModal
<
SaveAndPublishModal
...
@@ -105,7 +104,7 @@ const SaveButton = ({
...
@@ -105,7 +104,7 @@ const SaveButton = ({
onClickSave=
{
onClickSave
}
onClickSave=
{
onClickSave
}
/>
/>
)
}
)
}
</
Flex
>
</
HStack
>
</
Box
>
</
Box
>
)
}
)
}
</
MyPopover
>
</
MyPopover
>
...
...
projects/app/src/web/styles/chakraui.scss
View file @
9b73d3f7
...
@@ -6,3 +6,7 @@ body select {
...
@@ -6,3 +6,7 @@ body select {
.chakra-tooltip
{
.chakra-tooltip
{
font-size
:
var
(
--
chakra-fontSizes-xs
)
!
important
;
font-size
:
var
(
--
chakra-fontSizes-xs
)
!
important
;
}
}
.chakra-popover__popper
>
section
{
width
:
auto
!
important
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment