Fix(ToolBase and ToolTemplate): Optimize panel side

This commit is contained in:
2024-05-01 17:48:12 +08:00
parent 80bec52fcd
commit 6e4e5ed9aa
3 changed files with 46 additions and 2 deletions

View File

@@ -0,0 +1,43 @@
@use '@/assets/css/constants' as constants;
[data-component=system-tools-template] {
.root-content {
padding: 20px;
gap: 10px;
height: 100%;
width: 100%;
.has-edited::after {
content: '*';
color: constants.$font-secondary-color;
}
>*:first-child {
width: 0;
height: fit-content;
}
> *:nth-child(2) {
position: sticky;
top: 20px;
height: calc(100vh - 40px);
}
.close-editor-btn {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 10px;
right: 10px;
background-color: constants.$font-secondary-color;
width: 32px;
height: 32px;
border-radius: 50%;
color: white;
opacity: 0.6;
box-shadow: 2px 2px 10px 0 rgba(0,0,0,0.2);
cursor: pointer;
}
}
}