Skip to content

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

angiehemans
Copy link

Updated the design of the "Size" section of the design tab to be more compact and use a two column layout.
size-changes

Copy link

vercel bot commented May 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plasmic-cms-i18n ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2025 3:26pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
react-email-demo ⬜️ Ignored (Inspect) May 1, 2025 3:26pm

Copy link

vercel bot commented May 1, 2025

@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>
}
<>
Copy link
Member

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,
Copy link
Member

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";
Copy link
Member

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,
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants