Open Bug 1260001 Opened 10 years ago Updated 4 years ago

Make sidebar widths consistent across tools

Categories

(DevTools :: Shared Components, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: ntim, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [btpp-backlog])

It would be nice if the sidebar widths were consistent across tools, so switching across tools feels less jarring. Switching panels in Safari feels very smooth, as the sidebar width doesn't change.
Priority: -- → P3
Whiteboard: [btpp-backlog]
Helen, what sidebar width should we use ? should resizing a sidebar in one tool resize the other tools as well ? should resizing persist ? Currently we resizing is per-tool, and persisting is done on a case-per-case basis.
Flags: needinfo?(hholmes)
(In reply to Tim Nguyen :ntim (use needinfo?) from comment #1) > Helen, what sidebar width should we use ? should resizing a sidebar in one > tool resize the other tools as well ? should resizing persist ? > > Currently we resizing is per-tool, and persisting is done on a case-per-case > basis. Hm... I've given very little thought to this and it sounds like you've given more thought to it than I have, so here are my first shots at answering your questions: 1. Sidebar width: We might go with a percentage of the overall screensize, 30% being the largest. Looking at Safari, that's what it seems they do. 2. Resizing one tool probably shouldn't affect other sidebars—I'm not sure the relationship will be totally obvious to users. 3. I think having resizing persist is nice. One thing also worth chatting about is that sidebar width—so, Safari caps it off at 30% or so, width-wise. We currently have the animation panel in a sidebar. Do we write in a rule that the animation bar isn't beholden to that width? (I think the animation panel is more useful when I can resize it at will.)
Flags: needinfo?(hholmes)
Agreed with what Helen said in that resizing sidebar in one tool should not affect others and that we should persist per-tool. So, basically matching our current behavior. Right now we do have a max width but it's very large. This is helpful for tools like rule view and animations panel, although probably not so useful on the debugger sources list. But it's a trade off between consistency if we want to restrict some of the sidebars to smaller widths. What we should definitely adjust is make sure that similar sidebars have the same default width. For example, the debugger, style editor, and performance panels all seem to use a different width on a clean profile. Those 3 are all similar sidebars on the same side and shouldn't jump around by default.
(In reply to Brian Grinstead [:bgrins] from comment #3) > Right now we do have a max width but it's very large. This is helpful for > tools like rule view and animations panel, although probably not so useful > on the debugger sources list. But it's a trade off between consistency if > we want to restrict some of the sidebars to smaller widths. Yeah, I don't want to lose this entirely—I think it's really important for the Animation Panel in particular. I've chatted with Patrick some before about how for the Animation Panel in particular it would be nice to have an auto-expand button so that it automatically goes to 100% with a breadcrumb back out. I think if we were to land this bug with smaller max-widths globally, this sort of autoexpand on certain panels might be necessary dependency. > What we should definitely adjust is make sure that similar sidebars have the > same default width. For example, the debugger, style editor, and > performance panels all seem to use a different width on a clean profile. > Those 3 are all similar sidebars on the same side and shouldn't jump around > by default. Agreed!
Blocks: 1287377
Product: Firefox → DevTools
Component: Framework → CSS and Themes
Component: CSS and Themes → Shared Components
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.