debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Conditional breakpoint overlay is cut off in vertical mode

Open digitarald opened this issue 9 years ago • 8 comments

STR:

  • Vertical mode in Debugger
  • Make breakpoint conditional

ER: Correctly positioned conditional breakpoint form, responsively fitting into the space available.

AR: image

digitarald avatar Nov 16 '17 06:11 digitarald

Mhh, I was not able to reproduce the issue

condition-breakpoint

borian avatar Nov 19 '17 18:11 borian

Probably, CodeMirror was scrolled horizontally in AR image?

magicp-github avatar Nov 23 '17 03:11 magicp-github

It looks like there's a responsiveness bug even outside of vertical mode. Notice how the close button is obscured because it's too far to the right: screen shot 2017-11-27 at 12 17 49 pm

This is fixable in horizontal mode by setting the CodeMirror-linewidget to have width: calc(100% - 30px) but that doesn't work in vertical mode when the user can scroll horizontally.

I think we need to clear up what the expected behavior is in vertical mode. Do we want something like this? screen shot 2017-11-27 at 12 21 50 pm and have it fixed in that position as the user scrolls to the right? screen shot 2017-11-27 at 12 23 38 pm

(This is a mockup, I haven't yet figured out how to do that in proper CSS)

Zacqary avatar Nov 27 '17 18:11 Zacqary

👋 @Zacqary!

We have a UI redux field for the sidebar widths. Could help...

jasonLaster avatar Nov 27 '17 20:11 jasonLaster

So here's what I was able to achieve by adding padding-right: 16px to .conditional-breakpoint-panel and then removing the min-width from .CodeMirror-sizer — the condition input field is now fully responsive, and the only thing that's still broken is horizontal scrolling:

resize

I haven't actually been able to figure out why .CodeMirror-sizer has a min-width property; it doesn't seem to break anything when I disable it, but it's got to be there for a reason, right?

Zacqary avatar Nov 27 '17 20:11 Zacqary

/claim by the way

Zacqary avatar Nov 27 '17 20:11 Zacqary

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Nov 27 '17 20:11 claim

The PR associated was merged a month ago so this looks like it should be closed.

wldcordeiro avatar Dec 28 '17 07:12 wldcordeiro