feat: feature/mvp-sprint-1 Added more spacing options
This commit is contained in:
parent
b69bf81429
commit
ca5b8dee0d
10
remix/app/Providers/Chakra/space.tsx
Normal file
10
remix/app/Providers/Chakra/space.tsx
Normal file
@ -0,0 +1,10 @@
|
||||
const spaceObj = {}
|
||||
|
||||
const start = 0
|
||||
const end = 9999
|
||||
|
||||
for (let i = start; i <= end; i++) {
|
||||
spaceObj[i] = `${i * 0.25}rem`
|
||||
}
|
||||
|
||||
export const space = spaceObj
|
@ -10,10 +10,12 @@ import {
|
||||
} from "@chakra-ui/react"
|
||||
|
||||
import { colors } from "./colors"
|
||||
import { space } from "./space"
|
||||
|
||||
export const theme = extendTheme({
|
||||
colors,
|
||||
// edit Input defaultProps
|
||||
space,
|
||||
styles: {
|
||||
global: {
|
||||
// make all elements padding and margin animate
|
||||
|
@ -99,7 +99,7 @@ export const ThingtimeURL = (props) => {
|
||||
// position="sticky"
|
||||
// top={200}
|
||||
// alignSelf="flex-start"
|
||||
// overflow="scroll"
|
||||
overflow="scroll"
|
||||
width="600px"
|
||||
// width="100%"
|
||||
maxHeight="100vh"
|
||||
@ -109,7 +109,7 @@ export const ThingtimeURL = (props) => {
|
||||
path={path}
|
||||
thing={thing}
|
||||
render
|
||||
chakras={{ marginY: 200 }}
|
||||
chakras={{ marginY: "200px" }}
|
||||
width="600px"
|
||||
></Thingtime>
|
||||
</Box>
|
||||
@ -118,7 +118,7 @@ export const ThingtimeURL = (props) => {
|
||||
edit={inEditMode}
|
||||
path={path}
|
||||
thing={thing}
|
||||
chakras={{ marginY: 200 }}
|
||||
chakras={{ marginY: "200px" }}
|
||||
width="600px"
|
||||
></Thingtime>
|
||||
</Flex>
|
||||
|
Loading…
Reference in New Issue
Block a user