Fixes for API logo issues
This commit is contained in:
@@ -1020,19 +1020,7 @@ export function Editor({ id }: EditorProps) {
|
||||
updateProject({ recipeJson: JSON.stringify(r) });
|
||||
}}
|
||||
/>
|
||||
<Select
|
||||
label="Shape"
|
||||
data={[
|
||||
{ value: 'square', label: 'Square' },
|
||||
{ value: 'circle', label: 'Circle' },
|
||||
]}
|
||||
value={recipe.shape ?? 'square'}
|
||||
onChange={(v) => {
|
||||
const r = { ...recipe };
|
||||
r.shape = (v as 'square' | 'circle') ?? 'square';
|
||||
updateProject({ recipeJson: JSON.stringify(r) });
|
||||
}}
|
||||
/>
|
||||
{/* Shape select removed - circle shape has rendering issues in qr-code-styling library */}
|
||||
<Group grow>
|
||||
<NumberInput
|
||||
label="Margin"
|
||||
|
||||
@@ -28,7 +28,7 @@ export function buildQrStylingOptions(
|
||||
data: overrides.data ?? recipe.data ?? ' ',
|
||||
image: overrides.image,
|
||||
type: 'canvas',
|
||||
shape: recipe.shape ?? 'square',
|
||||
shape: 'square', // circle shape has rendering issues in qr-code-styling library
|
||||
margin: recipe.margin ?? 0,
|
||||
qrOptions: {
|
||||
type: 'canvas',
|
||||
|
||||
@@ -53,7 +53,7 @@ export interface RecipeOptions {
|
||||
type?: string;
|
||||
gradient?: QrGradient;
|
||||
};
|
||||
shape?: 'square' | 'circle';
|
||||
// shape removed - circle shape has rendering issues in qr-code-styling library
|
||||
margin?: number;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user