mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 11:58:38 +00:00
Merge pull request #2395 from seefs001/fix/siderbar
fix: sidebar color overlap
This commit is contained in:
@@ -377,7 +377,6 @@ const SiderBar = ({ onNavigate = () => {} }) => {
|
|||||||
className='sidebar-container'
|
className='sidebar-container'
|
||||||
style={{
|
style={{
|
||||||
width: 'var(--sidebar-current-width)',
|
width: 'var(--sidebar-current-width)',
|
||||||
background: 'var(--semi-color-bg-0)',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<SkeletonWrapper
|
<SkeletonWrapper
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ code {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
transition: width 0.3s ease;
|
transition: width 0.3s ease;
|
||||||
|
background: var(--semi-color-bg-0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-nav {
|
.sidebar-nav {
|
||||||
@@ -221,6 +222,22 @@ code {
|
|||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.sidebar-container {
|
||||||
|
background: var(--semi-color-bg-1);
|
||||||
|
border-right: 1px solid var(--semi-color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-nav {
|
||||||
|
background: var(--semi-color-bg-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-collapse-button {
|
||||||
|
background-color: var(--semi-color-bg-1);
|
||||||
|
box-shadow: 0 -10px 10px -5px var(--semi-color-bg-1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* ==================== 聊天界面样式 ==================== */
|
/* ==================== 聊天界面样式 ==================== */
|
||||||
.semi-chat {
|
.semi-chat {
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user