Skip to content
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

Remove extra spacing around editing contents, flows and bag part #12585

Merged

Conversation

MikeAlhayek
Copy link
Member

@MikeAlhayek MikeAlhayek commented Oct 7, 2022

Here are some screenshots of the adjusted spacing

removed extra spacing around bag part, widget list and flow part

image

image

Removed the extra spacing around the create/edit form in contents and the page title

image

image

image

Here are screenshots from the past (as you can see the spacing isn't consistent)

image

This is a good view. I am positing here just so you can see that the spacing are not consistent with the above screenshot.
image

image

@MikeAlhayek
Copy link
Member Author

/cc @Skrypt this is what I am referring to. I updated the PR with some screenshots

data-contenttypes-name="@Model.ContentTypesName"
data-contentitems-name="@Model.ContentItemsName"
data-widget-type="@type.Name"
href="javascript:;">@type.DisplayName</a></li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that you used VS auto-formatting here. Maybe that's not the best.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Skrypt updated!

@sebastienros sebastienros merged commit 1107fc1 into OrchardCMS:main Nov 3, 2022
<div class="btn-group">
@if (Model.CanInsert != false)
@if (Model.CanInsert)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it's broken the View (in some cases, not sure which ones yet)
But Model.CanInsert is genearlly a null, so it can't be cast to a bool

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that's the case then it should be set properly as a bool beforehand in the Driver or we should be using a strongly type ShapeViewModel.

@MikeAlhayek MikeAlhayek deleted the RemoveExtraSpacingDuringEdit branch December 28, 2022 01:44
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.

4 participants