Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
64b7c251
Commit
64b7c251
authored
Dec 02, 2024
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(首页): 历史记录样式调整
parent
ccdb0d3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
history-menu-sidebar.vue
src/views/home/components/history-menu-sidebar.vue
+2
-2
home.vue
src/views/home/home.vue
+3
-3
No files found.
src/views/home/components/history-menu-sidebar.vue
View file @
64b7c251
...
...
@@ -166,7 +166,7 @@ defineExpose({
<
template
>
<Transition
name=
"history-menu"
>
<div
v-show=
"isShowHistoryMenu"
class=
"absolute bottom-0 right-[24px] top-0 z-10 py-[24px]"
>
<div
class=
"box-border h-full w-[2
4
9px] rounded-[10px] bg-[#ECEFFF] py-[15px] pl-[10px]"
>
<div
class=
"box-border h-full w-[2
6
9px] rounded-[10px] bg-[#ECEFFF] py-[15px] pl-[10px]"
>
<n-scrollbar>
<div
class=
"pr-[10px]"
>
<!--
<div
class=
"select-none"
>
...
...
@@ -263,7 +263,7 @@ defineExpose({
</Transition>
<button
class=
"flex-center
absolute right-[278px] top-1/2 z-10 h-[24px] w-[24px] rounded-full bg-[#ECEFFF] transition-[right] duration-300
ease-in-out"
class=
"flex-center
duration-400 absolute right-[278px] top-1/2 z-10 h-[24px] w-[24px] rounded-full bg-[#ECEFFF] transition-[right]
ease-in-out"
:class=
"[isShowHistoryMenu ? [] : ['!right-[5px]']]"
@
click=
"handleShowHistoryMenuSwitch"
>
...
...
src/views/home/home.vue
View file @
64b7c251
...
...
@@ -57,9 +57,9 @@ const currentFetchEventSourceController = ref<AbortController | null>(null)
// })
const
homeContainerWidthWatchDebounce
=
debounce
((
newWidth
)
=>
{
if
(
newWidth
<=
1
06
0
)
{
if
(
newWidth
<=
1
12
0
)
{
isShowHistoryMenu
.
value
=
false
}
else
if
(
newWidth
>=
13
0
0
)
{
}
else
if
(
newWidth
>=
13
2
0
)
{
isShowHistoryMenu
.
value
=
true
}
},
300
)
...
...
@@ -201,7 +201,7 @@ function onGetMessageRecordList(recordId: string) {
<div
ref=
"homeContainerRef"
class=
"relative h-full min-h-[650px] w-full"
>
<div
class=
"bg-px-home-home_bg-png relative h-full w-full bg-contain bg-center bg-no-repeat pr-0 transition-[padding] duration-300 ease-in-out"
:class=
"
{ '!pr-[2
7
3px]': isShowHistoryMenu }"
:class=
"
{ '!pr-[2
9
3px]': isShowHistoryMenu }"
>
<div
class=
"mx-auto flex h-full w-[750px] flex-col px-[5px] py-[40px]"
>
<AgentAbout
...
...
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