Skip to content

Commit 403a7dc

Browse files
committed
chore: força redeploy vercel com posicionamento correto de toasts
Garante que o Vercel faça rebuild com o posicionamento correto: - Feedback rápido em top-right - Erros em top-center - Notificações em bottom-center"
1 parent 82ec8ed commit 403a7dc

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ export default function App() {
222222
const onFontSizeChange = useCallback((v: number) => setFontSize(clampZoom(v)), []);
223223
const onToggleVisualEdits = useCallback(() => {
224224
setVisualEditsEnabled((v) => {
225-
// Ao desativar, fecha o menu hierárquico aberto (se houver).
226225
if (v) setVeMenu(null);
227226
return !v;
228227
});
@@ -256,14 +255,12 @@ export default function App() {
256255
setPanelSplit(s);
257256
}, []);
258257

259-
// Recebe clique do Visual Edits no preview (coords já em window space).
260258
const onVisualEditsLocate = useCallback(
261259
(loc: string, screenX: number, screenY: number) => {
262260
const m = /^(\d+)-(\d+)$/.exec(loc);
263261
if (!m) return;
264262
const entry = renderedRef.current?.contributors?.[loc];
265263
if (!entry || entry.items.length === 0) {
266-
// Nada a desambiguar: pula direto pro literal clicado.
267264
editorRef.current?.scrollAndSelect(parseInt(m[1], 10), parseInt(m[2], 10));
268265
setVeMenu(null);
269266
return;

0 commit comments

Comments
 (0)