diff --git a/playwright.config.ts b/playwright.config.ts index 2f1f0cd..4880a90 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -31,15 +31,27 @@ export default defineConfig({ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: "on-first-retry", + + /* Viewport height */ + viewport: { width: 1280, height: 1280 }, }, /* Configure projects for major browsers */ projects: [ - { name: "chromium", use: { ...devices["Desktop Chrome"] } }, + { + name: "chromium", + use: { ...devices["Desktop Chrome"], viewport: { width: 1280, height: 1500 } }, + }, - { name: "firefox", use: { ...devices["Desktop Firefox"] } }, + { + name: "firefox", + use: { ...devices["Desktop Firefox"], viewport: { width: 1280, height: 1500 } }, + }, - { name: "webkit", use: { ...devices["Desktop Safari"] } }, + { + name: "webkit", + use: { ...devices["Desktop Safari"], viewport: { width: 1280, height: 1500 } }, + }, /* Test against mobile viewports. */ // { diff --git a/src/components/databrowser/components/display/display-list-edit.tsx b/src/components/databrowser/components/display/display-list-edit.tsx index d94ce4a..8bdbee6 100644 --- a/src/components/databrowser/components/display/display-list-edit.tsx +++ b/src/components/databrowser/components/display/display-list-edit.tsx @@ -80,31 +80,22 @@ const ListEditForm = ({ return ( -
+
+ {type === "zset" && } + {type !== "list" && ( + + )} + + {type !== "set" && type !== "zset" && ( )} - - {type === "zset" ? ( - - ) : ( - type !== "set" && ( - - ) - )}
+
{label}{" "} / {selector}
-
+
{editor}
diff --git a/src/components/databrowser/components/display/display-simple.tsx b/src/components/databrowser/components/display/display-simple.tsx index 7365bed..f8cc434 100644 --- a/src/components/databrowser/components/display/display-simple.tsx +++ b/src/components/databrowser/components/display/display-simple.tsx @@ -63,9 +63,7 @@ const EditorDisplayForm = ({ {type === "json" ?
: selector}
-
- {editor} -
+
{editor}
diff --git a/src/components/databrowser/components/display/input/custom-editor.tsx b/src/components/databrowser/components/display/input/custom-editor.tsx index a8f2519..9344977 100644 --- a/src/components/databrowser/components/display/input/custom-editor.tsx +++ b/src/components/databrowser/components/display/input/custom-editor.tsx @@ -79,7 +79,7 @@ export const CustomEditor = ({ return (
{isTest ? (