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

NEW display controls in a consistent manner #27

Merged

Conversation

NightJar
Copy link
Contributor

@NightJar NightJar commented Jul 3, 2018

As a work around to embedding the HistoryViewerField within a regular
edit form (such as within a GridFieldDetailForm) allow a developer to
opt-in to hiding the save/publish actions, and pushing the revert button
to the bottom of the CMS screen to keep actions for the current screen
in the CMS consistent. This can be done by adding a class to the Tab
that hosts the history viewer.
c.f. silverstripe/silverstripe-elemental#251
Resolves #22

As a work around to embedding the HistoryViewerField within a regular
edit form (such as within a GridFieldDetailForm) allow a developer to
opt-in to hiding the save/publish actions, and pushing the revert button
to the bottom of the CMS screen to keep actions for the current screen
in the CMS consistent. This can be done by adding a class to the Tab
that hosts the history viewer.
@NightJar NightJar force-pushed the pulls/1.0/edit-UI-history branch from 879fcc1 to e0e19ac Compare July 3, 2018 04:26
Copy link
Contributor

@robbieaverill robbieaverill left a comment

Choose a reason for hiding this comment

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

Looks great! I would've preferred to use flexbox, but this has less of an impact on the rest of the CMS interface so nice work =)

One thing I noticed (totally unrelated) is that the pagination select box is too wide. Would you mind smashing in a .history-viewer__pagination select { width: auto } somewhere into the SCSS in this PR? I can do it later otherwise

@robbieaverill robbieaverill merged commit 5e8bf7b into silverstripe:1.0 Jul 3, 2018
@dhensby dhensby deleted the pulls/1.0/edit-UI-history branch July 3, 2018 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants