-
Notifications
You must be signed in to change notification settings - Fork 168
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
UX Squished TinyMCE Editor #586
Conversation
I'm not a css guru, but I was playing around a bit and this may be where a bit of padding could happen: .custom-summary {
.ui-accordion-content,
.ui-accordion-content .field {
padding: 0;
}
// Change the caret to a plus icon
.ui-icon-triangle-1-e {
background-position: -16px -128px;
}
} I'm not sure what design patterns need to be followed and I don't have the FE build tools setup at this point. |
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.
@muskie9 Thanks for raising this, and sorry it hasn't received attention until now.
Had a play around with this PR, and it doesn't seem to render the way your screenshot suggests unless I add the $summary->addExtraClass('stacked');
you described. The added padding
also seems to trigger horizontal scroll, and the layout actually looks fine without it.
If you've got some time to get this across the line, my recommendations are:
- Target the PR at the
3
branch (git rebase --onto=3 HEAD~2
) - Add the
$summary->addExtraClass('stacked');
call - Remove the added
padding
If not, I'll need to close this out.
It seems like there's going to be no further activity on this pull request, so we've closed it for now. Please open a new pull-request if you want to re-approach this work, or for anything else you think could be fixed or improved. |
code bellow gets what the screenshot above shows with just css or also with vendor/silverstripe/blog/client/src/styles/cms.scss:140 .custom-summary {
.ui-accordion-content,
.ui-accordion-content .field {
padding: 0;
> margin: 0;
> &:last-of-type::after {
> display: none;
> }
> .form__field-holder {
> margin-left: 0;
> max-width: calc(100% - 2px);
> flex: initial;
> padding-left: 0;
> padding-right: 0;
> }
// WITH „stacked“
// margin: 0;
// &:last-of-type::after {
// display: none;
// }
// .form__field-holder {
// margin-left: 0;
// padding-left: 0;
// padding-right: 0;
// .mce-container {
// max-width: calc(100% - 2px);
// }
// }
}
// Change the caret to a plus icon
.ui-icon-triangle-1-e {
background-position: -16px -128px;
}
} Haven’t got whats up with
|
resolves #485
This didn't turn out exactly as noted in the issue ticket from when it was last fixed. Below is the UX with adding the label. I played with
->addExtraClass('stacked')
a bit but that didn't seem to change anything.