Skip to content

Commit 9cbc584

Browse files
committed
Check canvas mode instaed of default
1 parent 0d1af8a commit 9cbc584

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/unsplash/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Blurhash } from "react-blurhash"
1010

1111
const mode = framer.mode
1212

13-
const minWindowWidth = mode === "default" ? 350 : 600
13+
const minWindowWidth = mode === "canvas" ? 350 : 600
1414
const minColumnWidth = 100
1515
const columnGap = 8
1616
const sidePadding = 16 * 2
@@ -33,7 +33,7 @@ export function App() {
3333
const mode = framer.mode
3434
const randomPhoto = await getRandomPhoto(query)
3535

36-
if (mode === "default") {
36+
if (mode === "canvas") {
3737
await framer.addImage({
3838
image: randomPhoto.urls.full,
3939
name: randomPhoto.alt_description ?? randomPhoto.description ?? "Unsplash Image",
@@ -102,7 +102,7 @@ const PhotosList = memo(function PhotosList({ query }: { query: string }) {
102102
mutationFn: async (photo: UnsplashPhoto) => {
103103
const mode = framer.mode
104104

105-
if (mode === "default") {
105+
if (mode === "canvas") {
106106
await framer.addImage({
107107
image: photo.urls.full,
108108
name: photo.alt_description ?? photo.description ?? "Unsplash Image",

0 commit comments

Comments
 (0)