fix(editor): missing viewport selector in editor setting (#13168)

#### PR Dependency Tree


* **PR #13168** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Style**
* Updated CSS class names for the snapshot container to improve
consistency in styling and targeting.


<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
L-Sun
2025-07-11 17:06:18 +08:00
committed by GitHub
parent d65a7494a4
commit 15726bd522

View File

@@ -13,6 +13,7 @@ import {
} from '@blocksuite/affine/std/gfx';
import type { Block, Store } from '@blocksuite/affine/store';
import { useFramework } from '@toeverything/infra';
import clsx from 'clsx';
import { isEqual } from 'lodash-es';
import { useCallback, useEffect, useMemo, useRef } from 'react';
import { map, pairwise } from 'rxjs';
@@ -65,7 +66,7 @@ export const EdgelessSnapshot = (props: Props) => {
.codeBlockHtmlPreview(framework).value;
return manager
.get('preview-edgeless')
.concat([ViewportElementExtension('.ref-viewport')]);
.concat([ViewportElementExtension('.setting-editor-snapshot')]);
}, [framework]);
const updateElements = useCallback(() => {
@@ -156,7 +157,7 @@ export const EdgelessSnapshot = (props: Props) => {
}, [editorSetting.provider, keyName, updateElements]);
return (
<div className={snapshotContainer}>
<div className={clsx(snapshotContainer, 'setting-editor-snapshot')}>
<div className={snapshotTitle}>{title}</div>
<div className={snapshotLabel}>{title}</div>
<div ref={wrapperRef} className={editorWrapper} style={{ height }}>