Skip to content

Commit 8627ff1

Browse files
update close isolation button style
1 parent 5ea9d9f commit 8627ff1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

editor-packages/editor-canvas/frame-title/frame-title.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,7 @@ export const FrameTitleLabel = styled.span<{
9393
}>`
9494
color: ${(p) => p.color};
9595
user-select: none;
96+
overflow: hidden;
9697
text-overflow: ellipsis;
98+
white-space: nowrap;
9799
`;

editor/components/canvas/isolated-canvas.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useGesture } from "@use-gesture/react";
44
import useMeasure from "react-use-measure";
55
import { Resizable } from "re-resizable";
66
import { ZoomControl } from "./controller-zoom-control";
7+
import { colors } from "theme";
78

89
/**
910
* A React Hook that returns a delta state.
@@ -156,12 +157,13 @@ export function IsolatedCanvas({
156157

157158
const ExitButton = styled.button`
158159
align-self: center;
160+
background-color: ${colors.color_editor_bg_on_dark};
161+
box-shadow: ${colors.color_editor_bg_on_dark} 0px 0px 0px 16px inset;
159162
outline: none;
160163
border: none;
161164
cursor: pointer;
162-
background: none;
163165
color: white;
164-
border-radius: 2px;
166+
border-radius: 4px;
165167
height: 24px;
166168
`;
167169

0 commit comments

Comments
 (0)