Update files
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
export function getCodeInsets(theme: any) {
|
||||
const paddingX = theme.spacing[3] + theme.spacing[2];
|
||||
const paddingY = theme.spacing[1];
|
||||
const currentHorizontal = theme.spacing[3] + theme.spacing[2];
|
||||
const padding =
|
||||
typeof theme.spacing?.[4] === "number" ? theme.spacing[4] : currentHorizontal;
|
||||
const extraRight = theme.spacing[4];
|
||||
const extraBottom = theme.spacing[3];
|
||||
|
||||
return { paddingX, paddingY, extraRight, extraBottom };
|
||||
return { padding, extraRight, extraBottom };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user