Skip to content

Commit 591e697

Browse files
committed
bugfix
1 parent bcdabee commit 591e697

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

apps/web/components/chatgpt-editor.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
CardSizeProvider,
88
} from "@repo/ui/context/CardSizeContext";
99
import SocialMediaController from "@repo/web-ui/SocialMediaController";
10-
const STORAGE_KEY = "chatgptCard";
10+
const STORAGE_KEY = "chatgptCardv2";
1111

1212
const cardBgColor = "bg-white";
1313
const textColor = "text-gray-900";
@@ -76,8 +76,8 @@ export default function ChatgptEditor() {
7676
const [state, setState] = useState({
7777
previewHeightPixels: 540,
7878
previewWidthPixels: 540,
79-
previewWidth: 540,
80-
previewHeight: 540,
79+
width: 540,
80+
height: 540,
8181
innerPaddingX: 30,
8282
innerPaddingY: 50,
8383
scale: 1,
@@ -96,8 +96,8 @@ export default function ChatgptEditor() {
9696
const {
9797
previewHeightPixels,
9898
previewWidthPixels,
99-
previewWidth,
100-
previewHeight,
99+
width: previewWidth,
100+
height: previewHeight,
101101
innerPaddingX,
102102
innerPaddingY,
103103
pageName,

apps/web/components/markdown-editor.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export default function QuizMarkdownEditor() {
7474
const [state, setState] = useState({
7575
previewHeightPixels: 540,
7676
previewWidthPixels: 540,
77-
previewWidth: 540,
78-
previewHeight: 540,
77+
width: 540,
78+
height: 540,
7979
innerPaddingX: 30,
8080
innerPaddingY: 50,
8181
scale: 1,
@@ -111,8 +111,8 @@ sayHi();
111111
const {
112112
previewHeightPixels,
113113
previewWidthPixels,
114-
previewWidth,
115-
previewHeight,
114+
width: previewWidth,
115+
height: previewHeight,
116116
innerPaddingX,
117117
innerPaddingY,
118118
pageName,
@@ -190,7 +190,7 @@ sayHi();
190190
<input
191191
type="range"
192192
min="20"
193-
max="100"
193+
max="1920"
194194
name="previewWidth"
195195
value={previewWidth}
196196
onChange={(e) =>

0 commit comments

Comments
 (0)