After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735858 - Extra space in sidebar
Extra space in sidebar
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2014-09-02 02:40 UTC by Mattias Bengtsson
Modified: 2014-09-04 18:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Before (30.02 KB, image/png)
2014-09-02 02:41 UTC, Mattias Bengtsson
  Details
After (20.46 KB, image/png)
2014-09-02 02:41 UTC, Mattias Bengtsson
  Details
sidebar: Grow route entries (6.52 KB, patch)
2014-09-03 07:42 UTC, Jonas Danielsson
none Details | Review
Before patch (628.29 KB, image/png)
2014-09-03 07:43 UTC, Jonas Danielsson
  Details
After patch (640.52 KB, image/png)
2014-09-03 07:44 UTC, Jonas Danielsson
  Details
After patch (more margin) (265.84 KB, image/png)
2014-09-03 16:52 UTC, Damián Nohales
  Details
sidebar: Grow route entries (6.58 KB, patch)
2014-09-03 18:29 UTC, Damián Nohales
committed Details | Review

Description Mattias Bengtsson 2014-09-02 02:40:56 UTC
As of commit 09becd6 ("Have sidebar push the map on reveal"), the route search form has some extra white-space on the right and the route mode buttons looks weirdly aligned.
My guess is that it's because an extra column was added in the grid somehow. I can't really see it from the diff though.

I'll attach before and after screens to show what I mean.
Comment 1 Mattias Bengtsson 2014-09-02 02:41:37 UTC
Created attachment 285107 [details]
Before
Comment 2 Mattias Bengtsson 2014-09-02 02:41:59 UTC
Created attachment 285108 [details]
After
Comment 3 Jonas Danielsson 2014-09-03 07:42:44 UTC
Created attachment 285225 [details] [review]
sidebar: Grow route entries

I have attempted some fixes for this. What do you think?
Comment 4 Jonas Danielsson 2014-09-03 07:43:23 UTC
Created attachment 285226 [details]
Before patch
Comment 5 Jonas Danielsson 2014-09-03 07:44:02 UTC
Created attachment 285227 [details]
After patch
Comment 6 Jonas Danielsson 2014-09-03 07:46:18 UTC
Btw, should the 'via' entries have the end-symbolic icon as well?
Comment 7 Damián Nohales 2014-09-03 16:52:32 UTC
Created attachment 285267 [details]
After patch (more margin)

Thanks Jonas,

Actually the patch looks good to me, but I would prefer more separation between button/image and the border of the sidebar.

It look like buttons are more close to the sidebar border than to the entry, although the distances are the same, we need to be sure that the distance are closer to the entry than to the border, so the button looks more related to the entry.

Same happens to the image.

This image is your patch applied with some tweaked margin values. What do you think?

(In reply to comment #6)
> Btw, should the 'via' entries have the end-symbolic icon as well?

I think yes, let ask to Dario/Andreas, and maybe adding the icons help us to do less hacks to keep entries well aligned.
Comment 8 Jonas Danielsson 2014-09-03 17:35:50 UTC
(In reply to comment #7)
> Created an attachment (id=285267) [details]
> After patch (more margin)
> 
> Thanks Jonas,
> 
> Actually the patch looks good to me, but I would prefer more separation between
> button/image and the border of the sidebar.
> 
> It look like buttons are more close to the sidebar border than to the entry,
> although the distances are the same, we need to be sure that the distance are
> closer to the entry than to the border, so the button looks more related to the
> entry.
> 
> Same happens to the image.
> 
> This image is your patch applied with some tweaked margin values. What do you
> think?

Thanks for review!

I think looks good, what margin values did you use?

> 
> (In reply to comment #6)
> > Btw, should the 'via' entries have the end-symbolic icon as well?
> 
> I think yes, let ask to Dario/Andreas, and maybe adding the icons help us to do
> less hacks to keep entries well aligned.

Yeah would like to hear from Andreas. But could be done as a separate bug.
Comment 9 Damián Nohales 2014-09-03 18:29:28 UTC
Created attachment 285280 [details] [review]
sidebar: Grow route entries

This is the modified Jonas's patch with the tweaked margins,
I also used margin in one side for placeholder widgets like
to-placeholder-grid and via-image.