fix: copy patn button flickering
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user