Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix: firefox object node display

AykutSaracabfe297991eb
diff --git a/src/components/Graph/CustomNode/styles.tsx b/src/components/Graph/CustomNode/styles.tsx
index 2410a69b..c410d9ff 100644
--- a/src/components/Graph/CustomNode/styles.tsx
+++ b/src/components/Graph/CustomNode/styles.tsx
@@ -21,7 +21,6 @@ export const StyledForeignObject = styled.foreignObject<{ $isObject?: boolean }>
overflow: hidden;
color: ${({ theme }) => theme.NODE_COLORS.TEXT};
pointer-events: none;
- padding: ${({ $isObject }) => $isObject && "10px"};
font-family: ${firaMono.style.fontFamily};
font-weight: 500;
@@ -75,11 +74,20 @@ export const StyledKey = styled.span<{
`;
export const StyledRow = styled.span<{ $type: string }>`
+ padding: 0 10px;
color: ${({ theme, $type }) => getTypeColor($type, theme)};
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+
+ &:first-of-type {
+ padding-top: 10px;
+ }
+
+ &:last-of-type {
+ padding-bottom: 10px;
+ }
`;
export const StyledChildrenCount = styled.span`
diff --git a/src/containers/Editor/LiveEditor/Tools.tsx b/src/containers/Editor/LiveEditor/Tools.tsx
index cb7ebf38..095a31f5 100644
--- a/src/containers/Editor/LiveEditor/Tools.tsx
+++ b/src/containers/Editor/LiveEditor/Tools.tsx
@@ -81,7 +81,9 @@ function rotateLayout(direction: "LEFT" | "RIGHT" | "DOWN" | "UP") {
function fullscreenBrowser() {
if (!document.fullscreenElement) {
- document.documentElement.requestFullscreen();
+ document.documentElement.requestFullscreen().catch(() => {
+ toast.error("Unable to enter fullscreen mode.");
+ });
} else if (document.exitFullscreen) {
document.exitFullscreen();
}