-
Notifications
You must be signed in to change notification settings - Fork 518
Design tab columns #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Design tab columns #140
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@angiehemans is attempting to deploy a commit to the Plasmic Team on Vercel. A member of the Team first needs to authorize it. |
will cause it to stretch to fill the parent container. | ||
</div> | ||
} | ||
<> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this fragment necessary?
@@ -78,7 +67,7 @@ class SizeSection_ extends StyleComponent< | |||
constructor(props: StyleComponentProps) { | |||
super(props); | |||
this.state = { | |||
showMore: false, | |||
isOpen: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this added as a state? I don't think it ever changes.
Also, since it is now a stateless component, can you change it to a functional component?
@@ -654,7 +484,7 @@ const FlexGrowControls = observer(function FlexGrowControls(props: { | |||
|
|||
function toDisplay(val: string, stretchLabel: string, isRoot: boolean) { | |||
if (val === "wrap") { | |||
val = "Hug content"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there might be more instances of "Hug content" scattered around the codebase. Maybe you could store this string in a variable in Labels.ts? Same with the other labels.
@@ -1028,7 +1028,7 @@ export const FullRow = React.forwardRef(function FullRow( | |||
? { | |||
display: "grid", | |||
gridTemplateColumns: "1fr ".repeat(props.children.length), | |||
gridColumnGap: 24, | |||
gridColumnGap: 28, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit concerned at changing the gap for all FullRow instances... why was this needed?
Updated the design of the "Size" section of the design tab to be more compact and use a two column layout.
