Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯明涛
sdream-ai-fe
Commits
fdb6ec35
Commit
fdb6ec35
authored
Oct 21, 2025
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 左侧list展示效果
parent
64022e77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/pages/Home/HomeNew.tsx
+2
-2
src/pages/Home/components/QuestionList/QuestionList.tsx
+4
-3
No files found.
src/pages/Home/HomeNew.tsx
View file @
fdb6ec35
...
@@ -221,7 +221,7 @@ export const Home: React.FC = () => {
...
@@ -221,7 +221,7 @@ export const Home: React.FC = () => {
{
/* 左侧区域 - 产品问答和您可以试着问我 */
}
{
/* 左侧区域 - 产品问答和您可以试着问我 */
}
<
div
<
div
className=
"flex flex-col gap-[20px] items-center overflow-y-auto scrollbar-hide"
className=
"flex flex-col gap-[20px] items-center overflow-y-auto scrollbar-hide"
style=
{
{
height
:
'calc(100vh - 64px)'
,
background
:
'linear-gradient(180deg, #F0F8FF 0%, #FFFFFF 50%, #FFFFFF 100%)
'
,
borderRadius
:
'24px'
}
}
style=
{
{
height
:
isToolBtnActive
?
'calc(100vh - 64px + 100px)'
:
'500px'
,
background
:
isToolBtnActive
?
'linear-gradient(180deg, #F0F8FF 0%, #FFFFFF 50%, #FFFFFF 100%)'
:
'
'
,
borderRadius
:
'24px'
}
}
>
>
{
!
isToolBtnActive
&&
(
{
!
isToolBtnActive
&&
(
<
motion
.
div
className=
"w-full sm:w-auto"
{
...
getAnimationProps
(2)}
>
<
motion
.
div
className=
"w-full sm:w-auto"
{
...
getAnimationProps
(2)}
>
...
@@ -240,7 +240,7 @@ export const Home: React.FC = () => {
...
@@ -240,7 +240,7 @@ export const Home: React.FC = () => {
questions=
{
otherQuestions
.
content
}
questions=
{
otherQuestions
.
content
}
dotColor=
"#CBECFF"
dotColor=
"#CBECFF"
background=
"linear-gradient(180deg, #F0F8FF 0%, #FFFFFF 50%, #FFFFFF 100%)"
background=
"linear-gradient(180deg, #F0F8FF 0%, #FFFFFF 50%, #FFFFFF 100%)"
height=
"388px"
height=
{
isToolBtnActive
?
'388px'
:
'auto'
}
title=
{
otherQuestions
.
configName
}
title=
{
otherQuestions
.
configName
}
iconImg=
{
HomeIcon2
}
iconImg=
{
HomeIcon2
}
isToolBtn=
{
isToolBtnActive
}
isToolBtn=
{
isToolBtnActive
}
...
...
src/pages/Home/components/QuestionList/QuestionList.tsx
View file @
fdb6ec35
...
@@ -117,19 +117,20 @@ const QuestionListBase: React.FC<QuestionListProps & WithAuthProps> = ({
...
@@ -117,19 +117,20 @@ const QuestionListBase: React.FC<QuestionListProps & WithAuthProps> = ({
</
div
>
</
div
>
{
showRefresh
{
showRefresh
?
(
?
(
<
div
className=
"flex-shrink-0 ml-[8px]"
>
<
div
className=
"flex-shrink-0 ml-[8px]
flex items-center gap-[4px]
"
>
<
Button
onPress=
{
handleRefresh
}
isDisabled=
{
isRotating
}
isIconOnly
color=
"primary"
variant=
"light"
>
<
Button
onPress=
{
handleRefresh
}
isDisabled=
{
isRotating
}
isIconOnly
color=
"primary"
variant=
"light"
>
<
motion
.
div
<
motion
.
div
animate=
{
{
rotate
:
isRotating
?
-
360
:
0
}
}
animate=
{
{
rotate
:
isRotating
?
-
360
:
0
}
}
transition=
{
{
transition=
{
{
duration
:
0.
7
,
duration
:
0.
1
,
ease
:
'linear'
,
ease
:
'linear'
,
repeat
:
isRotating
?
Infinity
:
0
,
repeat
:
isRotating
?
Infinity
:
0
,
}
}
}
}
>
>
<
Refresh
/>
<
Refresh
className=
"w-[12px] h-[12px]"
/>
</
motion
.
div
>
</
motion
.
div
>
</
Button
>
</
Button
>
<
div
className=
"text-[12px] text-[#29B6FD] cursor-pointer"
>
换一换
</
div
>
</
div
>
</
div
>
)
)
:
null
}
:
null
}
...
...
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