silverstripe / silverstripe-campaign-admin

Campaign and publishing admin interface for Silverstripe
BSD 3-Clause "New" or "Revised" License
2 stars 16 forks source link

View Mode Toggle bugs #113

Closed robbieaverill closed 6 years ago

robbieaverill commented 6 years ago

A couple of small bugs that need fixing with view mode toggle:

Don't render toggle until there are items in the campaign (preview is actually used)

When you create a new campaign, there's nothing in it, but view mode toggle is still available. Toggling to preview mode leaves you stuck there with no way to return:

image

This is only replicateable with a smaller viewport width!

Perhaps this is the preview component with no rendered toolbar. Either way, we can't get back to the edit form.

Probably not rendering the toggle in the "edit form" would be the best solution here.

Remove one pixel left border on preview panel

When preview only mode is enabled, the preview panel has a 1px left border. This shouldn't be there

image

PR

bergice commented 6 years ago

Unable to replicate both issues. Tested on 4.2.x-dev.

There is no view mode toggle on the campaign view, but I also tested going into Preview mode on a Page, then navigating to Campaigns.

robbieaverill commented 6 years ago

I think this is 4.3.x, sorry! I totally should’ve mentioned that

bergice commented 6 years ago

In 4.3, when previewing a campaign, the navigation header is hidden, but on smaller resolutions the sidebar is also hidden. It looks like this is the issue here.

Am able to replicate extra border pixel issue now as well.

maxime-rainville commented 6 years ago

@bergice I think this issue got raise following one of my petty complaints. That's what I was seeing at the time, but Robbie was having problem reproducing it. https://youtu.be/cAOkDXFGAgE

unclecheese commented 6 years ago

Per @robbieaverill instructions I was finally able to replicate the issue with the toggle bar.

• create a new empty campaign • resize window down so that preview disappears • notice split mode toggle turns up in the toolbar • change it to preview mode • no way to get back again