fix: copy patn button flickering

This commit is contained in:
jialin
2025-03-26 17:31:31 +08:00
parent f658b9d6d9
commit bfdf02f065
2 changed files with 15 additions and 7 deletions
-1
View File
@@ -21,7 +21,6 @@ const CheckboxWrapper = styled.div`
align-items: center; align-items: center;
.check-text { .check-text {
font-weight: 700; font-weight: 700;
color: var(--ant-color-warning);
} }
`; `;
+15 -6
View File
@@ -71,21 +71,30 @@ import {
const filterPattern = /^(.*?)(?:-\d+-of-\d+)?(\.gguf)?$/; const filterPattern = /^(.*?)(?:-\d+-of-\d+)?(\.gguf)?$/;
const PathWrapper = styled.div` const PathWrapper = styled.div`
position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-start;
height: 100%; height: 100%;
.btn-wrapper { &::after {
content: '';
display: block;
width: 20px;
height: 100%;
position: absolute; position: absolute;
background: var(--color-bg-1); top: 0;
right: 0; right: 0;
display: none; z-index: 1;
}
.btn-wrapper {
display: flex;
opacity: 0;
width: 0;
align-items: center; align-items: center;
} }
&:hover { &:hover {
.btn-wrapper { .btn-wrapper {
display: flex; width: auto;
background: var(--ant-table-row-hover-bg); opacity: 1;
} }
} }
`; `;