Skip to content

Commit 3d612ad

Browse files
committed
fix: 尝试修复由于虚拟滚动带来的布局抖动问题
1 parent c327664 commit 3d612ad

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/components/common/MessageItem.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ watch(
207207
}
208208
209209
.message-item:hover {
210-
outline: 1px solid var(--active-accent);
211-
outline-offset: -1px;
210+
box-shadow: inset 0 0 0 1px var(--active-accent);
212211
}
213212
214213
.message-item.is-selected.is-active {
@@ -249,17 +248,21 @@ watch(
249248
position: absolute;
250249
top: 8px;
251250
right: 12px;
252-
display: none;
251+
display: flex;
252+
opacity: 0;
253+
pointer-events: none;
254+
transition: opacity 0.1s;
253255
align-items: center;
254256
gap: 4px;
255257
padding: 2px 4px;
256258
border-radius: 4px;
257-
border: 1px solid var(--border-light);
259+
border: none;
258260
z-index: 10;
259261
}
260262
261263
.message-item:hover .message-actions {
262-
display: flex;
264+
opacity: 1;
265+
pointer-events: auto;
263266
}
264267
265268
.action-button {
@@ -278,7 +281,6 @@ watch(
278281
279282
/* 悬停效果 */
280283
.action-button:hover {
281-
background-color: var(--border-light);
282284
opacity: 1;
283285
}
284286

src/components/layout/TopMenuBar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ const vClickOutside = {
481481
top: 100%;
482482
margin-top: 8px;
483483
background: var(--bg-topbar);
484-
border: 1px solid var(--border-light);
484+
border: none;
485485
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
486486
z-index: 100;
487487
}
@@ -534,7 +534,7 @@ const vClickOutside = {
534534
justify-content: space-between;
535535
gap: 8px;
536536
padding: 8px 0;
537-
border-top: 1px solid var(--border-light);
537+
border-top: none;
538538
}
539539
540540
.stored-project-main {

src/components/panels/ChunkListPanel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ function handleChunkDragEnd() {
470470
cursor: pointer;
471471
user-select: none;
472472
font-weight: 600;
473-
border-bottom: 1px solid var(--border-light);
473+
border-bottom: none;
474474
}
475475
476476
.doc-header:hover {
@@ -590,7 +590,7 @@ function handleChunkDragEnd() {
590590
}
591591
592592
.action-button:hover {
593-
background-color: var(--border-light);
593+
background-color: none;
594594
opacity: 1;
595595
}
596596

src/components/panels/IdentityPanel.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ watch(
447447
.list-header {
448448
font-size: 11px;
449449
color: var(--text-muted);
450-
border-bottom: 1px solid var(--border-light);
451450
text-align: center;
452451
position: sticky;
453452
top: 0;
@@ -463,7 +462,6 @@ watch(
463462
}
464463
465464
.identity-item {
466-
border-bottom: 1px dotted var(--border-light);
467465
transition: background-color 0.2s;
468466
}
469467

0 commit comments

Comments
 (0)