fix
This commit is contained in:
@@ -980,7 +980,7 @@ defineExpose({
|
||||
<div class="main-content">
|
||||
<!-- :minimapEnabled="minimapEnabled" -->
|
||||
<!-- 工具栏组件 -->
|
||||
<div style="min-width: 58px">
|
||||
<div style="min-width: 5.8rem">
|
||||
<ToolsSidebar
|
||||
v-if="canvasManagerLoaded"
|
||||
:activeTool="activeTool"
|
||||
@@ -1132,13 +1132,13 @@ defineExpose({
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 77;
|
||||
z-index: 100;
|
||||
& > .header-menu {
|
||||
height: 52px;
|
||||
height: 5.2rem;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 20px;
|
||||
padding: 0 2rem;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
@@ -1204,12 +1204,12 @@ defineExpose({
|
||||
|
||||
.zoom-info {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
right: 10px;
|
||||
bottom: 1rem;
|
||||
right: 1rem;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
padding: .5rem 1rem;
|
||||
border-radius: .4rem;
|
||||
font-size: 1.4rem;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
color: #666;
|
||||
display: flex;
|
||||
@@ -1217,42 +1217,42 @@ defineExpose({
|
||||
|
||||
.zoom-hint {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
top: 1rem;
|
||||
left: 1rem;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
padding: .5rem 1rem;
|
||||
border-radius: .4rem;
|
||||
font-size: 1.2rem;
|
||||
color: #666;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.reset-zoom {
|
||||
margin-left: 10px;
|
||||
margin-left: 1rem;
|
||||
cursor: pointer;
|
||||
padding: 2px 5px;
|
||||
font-size: 12px;
|
||||
padding: .2rem .5rem;
|
||||
font-size: 1.2rem;
|
||||
border: 1px solid #ddd;
|
||||
background: #f8f8f8;
|
||||
border-radius: 3px;
|
||||
border-radius: .3rem;
|
||||
}
|
||||
|
||||
.footer-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
padding: 15px;
|
||||
gap: 1rem;
|
||||
padding: 1.5rem;
|
||||
border-top: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.share-btn,
|
||||
.export-btn {
|
||||
padding: 8px 20px;
|
||||
padding: .8rem 2rem;
|
||||
border: none;
|
||||
border-radius: 20px;
|
||||
border-radius: 2rem;
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
@@ -1264,7 +1264,7 @@ defineExpose({
|
||||
}
|
||||
|
||||
button {
|
||||
font-size: 13px;
|
||||
font-size: 1.3rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
@@ -1273,10 +1273,10 @@ button:hover {
|
||||
}
|
||||
|
||||
.help-btn {
|
||||
margin-left: 10px;
|
||||
margin-left: 1rem;
|
||||
cursor: pointer;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
width: 2.4rem;
|
||||
height: 2.4rem;
|
||||
border-radius: 50%;
|
||||
background-color: #f0f0f0;
|
||||
border: 1px solid #ddd;
|
||||
@@ -1306,54 +1306,54 @@ button:hover {
|
||||
.modal-content {
|
||||
position: relative;
|
||||
width: 80%;
|
||||
max-width: 600px;
|
||||
max-width: 60rem;
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
border-radius: .8rem;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.close-modal {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
background-color: #f0f0f0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 20px;
|
||||
font-size: 2rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 网格控制面板样式 */
|
||||
.grid-controls {
|
||||
position: absolute;
|
||||
bottom: 115px;
|
||||
right: 10px;
|
||||
bottom: 11.5rem;
|
||||
right: 1rem;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
padding: 1rem;
|
||||
border-radius: .4rem;
|
||||
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
gap: .8rem;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.layers-panel {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 10px;
|
||||
right: 2rem;
|
||||
top: 1rem;
|
||||
transition: width 0.3s ease;
|
||||
background: #fff;
|
||||
width: 350px;
|
||||
width: 35rem;
|
||||
max-height: 85vh;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
|
||||
box-shadow: 0 .4rem 2rem rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
|
||||
backdrop-filter: blur(2px); /* 添加模糊效果 */
|
||||
-webkit-backdrop-filter: blur(2px);
|
||||
background-color: rgba(255, 255, 255, 0.95); /* 改为白色背景 */
|
||||
@@ -1363,13 +1363,13 @@ button:hover {
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -9px;
|
||||
right: 6px;
|
||||
top: -.9rem;
|
||||
right: .6rem;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 10px solid transparent;
|
||||
border-right: 10px solid transparent;
|
||||
border-bottom: 10px solid rgba(255, 255, 255, 0.95); /* 与面板背景色一致 */
|
||||
border-left: 1rem solid transparent;
|
||||
border-right: 1rem solid transparent;
|
||||
border-bottom: 1rem solid rgba(255, 255, 255, 0.95); /* 与面板背景色一致 */
|
||||
filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.05));
|
||||
z-index: 1;
|
||||
}
|
||||
@@ -1377,40 +1377,40 @@ button:hover {
|
||||
/* 添加触控设备的样式调整 */
|
||||
@media (pointer: coarse) {
|
||||
.tool-btn {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
font-size: 18px;
|
||||
width: 4.4rem;
|
||||
height: 4.4rem;
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.layers-panel {
|
||||
width: 280px;
|
||||
width: 28rem;
|
||||
}
|
||||
|
||||
.layer-item,
|
||||
.element-item {
|
||||
padding: 12px 8px;
|
||||
padding: 1.2rem .8rem;
|
||||
}
|
||||
|
||||
.element-action-btn,
|
||||
.element-delete-btn {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
width: 2.4rem;
|
||||
height: 2.4rem;
|
||||
}
|
||||
|
||||
.help-btn {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
width: 3.2rem;
|
||||
height: 3.2rem;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
width: 90%;
|
||||
padding: 16px;
|
||||
padding: 1.6rem;
|
||||
}
|
||||
|
||||
.close-modal {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
font-size: 24px;
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
font-size: 2.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1422,6 +1422,6 @@ button:hover {
|
||||
.fade-enter-from,
|
||||
.fade-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
transform: translateY(1rem);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user