Skip to content

Commit

Permalink
feat: add note about transparency in logos in builder
Browse files Browse the repository at this point in the history
  • Loading branch information
vacekj committed Jan 5, 2024
1 parent 4b2abd9 commit aada574
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/builder/src/components/base/images/ImageCrop.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useRef, useEffect } from "react";
import React, { useEffect, useRef, useState } from "react";

import ReactCrop, {
centerCrop,
Expand All @@ -10,7 +10,7 @@ import { BaseModal, ToggleModalProps } from "../BaseModal";
import buildCanvas from "./buildCanvas";

import "react-image-crop/dist/ReactCrop.css";
import Button, { ButtonVariants } from "../Button";
import Button, { ButtonVariants } from "../Button"; // This is to demonstate how to make and center a % aspect crop

// This is to demonstate how to make and center a % aspect crop
// which is a bit trickier, so we use some helper functions.
Expand Down Expand Up @@ -103,6 +103,9 @@ export default function ImageCrop({
/>
</ReactCrop>
)}
<div className="flex w-full" />
Note: Transparent sections in images will default to black when
uploaded. Please consider using a non-transparent background.
<div className="flex w-full">
<Button
styles={["w-1/2 justify-center"]}
Expand Down

0 comments on commit aada574

Please sign in to comment.