fix: 修复布局分割线显示异常的问题

This commit is contained in:
Baobhan Sith
2025-05-27 23:28:52 +08:00
parent 371d713f88
commit a0a250e38c
@@ -617,17 +617,26 @@ onMounted(() => {
/* Ensure handle lines remain hidden */ /* Ensure handle lines remain hidden */
/* background-color: transparent !important; */ /* background-color: transparent !important; */
/* } */ /* } */
.splitpanes.default-theme .splitpanes__splitter {
background-image: none !important; /* Ensure no background image in normal state */
}
.splitpanes.default-theme .splitpanes__splitter:hover { /* Apply hover style to the pseudo-element */ .splitpanes.default-theme .splitpanes__splitter:hover { /* Apply hover style to the pseudo-element */
background-color: var(--primary-color-light); /* Highlight on hover */ background-color: transparent !important; /* Make splitter transparent on hover */
border: none !important; /* Ensure no extra borders */ background-image: none !important; /* Ensure no background image on hover */
/* Ensure it still occupies space and has cursor */ /* Ensure it still occupies space and has cursor */
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
transition: background-color 0.1s ease-in-out; /* transition: background-color 0.1s ease-in-out; */ /* Transition handled by ::before */
} }
.splitpanes.default-theme .splitpanes__splitter:hover::before {
background-color: var(--primary-color-light) !important; /* Highlight on hover */
}
.splitpanes__splitter:before { .splitpanes__splitter:before {
/* Use background color as the visible line */ content: ""; /* Ensure content for pseudo-element */
display: block; /* Ensure it takes space */
width: 100%; /* Fill splitter width */
height: 100%; /* Fill splitter height */
background-color: var(--border-color); /* Set background to border color */ background-color: var(--border-color); /* Set background to border color */
border: none !important; /* Ensure no extra borders */ border: none !important; /* Ensure no extra borders */
/* Ensure it still occupies space and has cursor */ /* Ensure it still occupies space and has cursor */
@@ -635,6 +644,12 @@ onMounted(() => {
box-sizing: border-box; box-sizing: border-box;
transition: background-color 0.1s ease-in-out; transition: background-color 0.1s ease-in-out;
} }
/* Ensure ::after pseudo-element doesn't interfere */
.splitpanes.default-theme .splitpanes__splitter::after {
display: none !important;
}
/* Vertical splitter width */ /* Vertical splitter width */
.splitpanes--vertical > .splitpanes__splitter { .splitpanes--vertical > .splitpanes__splitter {
border-color: var(--border-color) !important; border-color: var(--border-color) !important;