Commit 64b7c251 authored by tyyin lan's avatar tyyin lan

chore(首页): 历史记录样式调整

parent ccdb0d3a
...@@ -166,7 +166,7 @@ defineExpose({ ...@@ -166,7 +166,7 @@ defineExpose({
<template> <template>
<Transition name="history-menu"> <Transition name="history-menu">
<div v-show="isShowHistoryMenu" class="absolute bottom-0 right-[24px] top-0 z-10 py-[24px]"> <div v-show="isShowHistoryMenu" class="absolute bottom-0 right-[24px] top-0 z-10 py-[24px]">
<div class="box-border h-full w-[249px] rounded-[10px] bg-[#ECEFFF] py-[15px] pl-[10px]"> <div class="box-border h-full w-[269px] rounded-[10px] bg-[#ECEFFF] py-[15px] pl-[10px]">
<n-scrollbar> <n-scrollbar>
<div class="pr-[10px]"> <div class="pr-[10px]">
<!-- <div class="select-none"> <!-- <div class="select-none">
...@@ -263,7 +263,7 @@ defineExpose({ ...@@ -263,7 +263,7 @@ defineExpose({
</Transition> </Transition>
<button <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]']]" :class="[isShowHistoryMenu ? [] : ['!right-[5px]']]"
@click="handleShowHistoryMenuSwitch" @click="handleShowHistoryMenuSwitch"
> >
......
...@@ -57,9 +57,9 @@ const currentFetchEventSourceController = ref<AbortController | null>(null) ...@@ -57,9 +57,9 @@ const currentFetchEventSourceController = ref<AbortController | null>(null)
// }) // })
const homeContainerWidthWatchDebounce = debounce((newWidth) => { const homeContainerWidthWatchDebounce = debounce((newWidth) => {
if (newWidth <= 1060) { if (newWidth <= 1120) {
isShowHistoryMenu.value = false isShowHistoryMenu.value = false
} else if (newWidth >= 1300) { } else if (newWidth >= 1320) {
isShowHistoryMenu.value = true isShowHistoryMenu.value = true
} }
}, 300) }, 300)
...@@ -201,7 +201,7 @@ function onGetMessageRecordList(recordId: string) { ...@@ -201,7 +201,7 @@ function onGetMessageRecordList(recordId: string) {
<div ref="homeContainerRef" class="relative h-full min-h-[650px] w-full"> <div ref="homeContainerRef" class="relative h-full min-h-[650px] w-full">
<div <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="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-[273px]': isShowHistoryMenu }" :class="{ '!pr-[293px]': isShowHistoryMenu }"
> >
<div class="mx-auto flex h-full w-[750px] flex-col px-[5px] py-[40px]"> <div class="mx-auto flex h-full w-[750px] flex-col px-[5px] py-[40px]">
<AgentAbout <AgentAbout
......
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 to comment