feat: add responsive tests for Option Settings and Split Panel
- Implemented responsive testing scripts for Option Settings and ResponsiveSplitPanel components. - Added tests to verify layout behavior across various screen sizes (desktop, tablet, mobile). - Generated screenshots and reports for visual validation of responsive designs. Made-with: Cursor
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import React from "react";
|
||||
import DOMPurify from "isomorphic-dompurify";
|
||||
let DOMPurify: any = null;
|
||||
if (typeof window !== "undefined") {
|
||||
DOMPurify = require("isomorphic-dompurify");
|
||||
}
|
||||
import {
|
||||
Check, Save, CheckCircle, CircleCheck, FileCheck, ShieldCheck,
|
||||
Trash2, Trash, XCircle, X, Eraser, CircleX,
|
||||
@@ -119,6 +122,7 @@ export function addToIconMap(name: string, component: LucideIcon): void {
|
||||
// SVG 정화
|
||||
// ---------------------------------------------------------------------------
|
||||
export function sanitizeSvg(svgString: string): string {
|
||||
if (!DOMPurify) return svgString;
|
||||
return DOMPurify.sanitize(svgString, { USE_PROFILES: { svg: true } });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user