666ghj commited on
Commit
023053b
·
1 Parent(s): f7de29d

style(HistoryDatabase): adjust grid background position for improved layout

Browse files

- Changed background position from center to top left to enhance grid alignment and responsiveness during height changes.

frontend/src/components/HistoryDatabase.vue CHANGED
@@ -412,7 +412,8 @@ onUnmounted(() => {
412
  linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
413
  linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
414
  background-size: 50px 50px;
415
- background-position: center center;
 
416
  }
417
 
418
  .gradient-overlay {
 
412
  linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
413
  linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
414
  background-size: 50px 50px;
415
+ /* 从左上角开始定位,高度变化时只在底部扩展,不影响已有网格位置 */
416
+ background-position: top left;
417
  }
418
 
419
  .gradient-overlay {