Skip to content

Commit abcab34

Browse files
committed
unnecessary dependency
1 parent eb2aef2 commit abcab34

File tree

1 file changed

+2
-5
lines changed
  • apps/builder/app/builder/features/style-panel/shared/css-editor

1 file changed

+2
-5
lines changed

apps/builder/app/builder/features/style-panel/shared/css-editor/css-editor.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import { PropertyInfo } from "../../property-label";
4040
import { ColorPopover } from "../../shared/color-picker";
4141
import { useClientSupports } from "~/shared/client-supports";
4242
import { CopyPasteMenu, copyAttribute } from "./copy-paste-menu";
43-
import { $settings } from "~/builder/shared/client-settings";
4443
import { AddStyleInput } from "./add-style-input";
4544
import { parseStyleInput } from "./parse-style-input";
4645
import { $selectedInstanceKey } from "~/shared/awareness";
@@ -402,10 +401,8 @@ export const CssEditor = ({
402401
if (search === "") {
403402
return handleAbortSearch();
404403
}
405-
// This is not needed in advanced mode because the input won't jump there as it is on top
406-
if ($settings.get().stylePanelMode !== "advanced") {
407-
memorizeMinHeight();
408-
}
404+
405+
memorizeMinHeight();
409406

410407
const styles = [];
411408
for (const [property, value] of styleMap) {

0 commit comments

Comments
 (0)