Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .gitignore

This file was deleted.

30,968 changes: 0 additions & 30,968 deletions package-lock.json

This file was deleted.

60 changes: 0 additions & 60 deletions package.json

This file was deleted.

39 changes: 0 additions & 39 deletions src/component/ComponentView/styles.module.sass

This file was deleted.

6 changes: 3 additions & 3 deletions src/component/Selectors/WidthAndHeight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Text } from "../Styled"
import useStyleValue from "../../hooks/useStyleValue"
import useApplyStyle from "../../hooks/useApplyStyle"
import { getUnit, getNumbericValue as getValue } from "../../helper"
const units = ["px", "rem"]
const units = ["px", "rem", "%", "em"]

const WidthAndHeight = () => {
const applyStyle = useApplyStyle()
Expand All @@ -31,7 +31,7 @@ const WidthAndHeight = () => {
<div className={style.body}>
<Slider
min={0}
max={500}
max={widthUnit === "%" ? 100 : (widthUnit === "em" ? 50 : 500)}
value={widthValue}
onChange={(value) => {
applyStyle("width", value + widthUnit)
Expand All @@ -53,7 +53,7 @@ const WidthAndHeight = () => {
<div className={style.body}>
<Slider
min={0}
max={500}
max={heightUnit === "%" ? 100 : (heightUnit === "em" ? 50 : 500)}
value={heightValue}
onChange={(value) => {
applyStyle("height", value + heightUnit)
Expand Down
1 change: 1 addition & 0 deletions src/welcome-map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const map: ComponentMember[] = [
className: "container",
style: {
width: "500px",
height: "400px",
background: "rgba(255, 255, 255, 1)",
borderRadius: "64px",
boxShadow: "2px 2px 43px 0px #999999",
Expand Down
Loading