File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 CardSizeProvider ,
88} from "@repo/ui/context/CardSizeContext" ;
99import SocialMediaController from "@repo/web-ui/SocialMediaController" ;
10- const STORAGE_KEY = "chatgptCard " ;
10+ const STORAGE_KEY = "chatgptCardv2 " ;
1111
1212const cardBgColor = "bg-white" ;
1313const 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,
Original file line number Diff line number Diff 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 ) =>
You can’t perform that action at this time.
0 commit comments