From 0298af658f74d5ab389fe6d3ed0819b2334a479a Mon Sep 17 00:00:00 2001 From: Marcus Lundblad Date: Fri, 25 Nov 2022 21:54:17 +0100 Subject: [PATCH 1/2] placeView: Decrease margins --- data/ui/place-view.ui | 8 ++++---- src/placeView.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/data/ui/place-view.ui b/data/ui/place-view.ui index f640b188..bb14445a 100644 --- a/data/ui/place-view.ui +++ b/data/ui/place-view.ui @@ -22,10 +22,10 @@ vertical - 18 - 18 - 18 - 18 + 12 + 12 + 12 + 12 12 diff --git a/src/placeView.js b/src/placeView.js index b0b61a3f..e62b7be9 100644 --- a/src/placeView.js +++ b/src/placeView.js @@ -481,8 +481,8 @@ export class PlaceView extends Gtk.Box { let box = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL, visible: true, - marginStart: 18, - marginEnd: 18, + marginStart: 12, + marginEnd: 12, marginTop: 6, marginBottom: 6, spacing: 12 }); @@ -522,7 +522,7 @@ export class PlaceView extends Gtk.Box { if (grid) { widget = new Gtk.Grid({ visible: true, - column_spacing: 8 }); + column_spacing: 6 }); for (let i = 0; i < grid.length; i++) { let row = grid[i]; @@ -560,7 +560,7 @@ export class PlaceView extends Gtk.Box { halign: Gtk.Align.FILL }); if (type === 'wikipedia') { - box.marginTop = 14; + box.marginTop = 12; box.marginBottom = 18; this._wikipediaLabel = widget; } -- GitLab From 70dd2480d0a948690cfbd916a563e79b998cf1c3 Mon Sep 17 00:00:00 2001 From: Marcus Lundblad Date: Sun, 27 Nov 2022 23:09:49 +0100 Subject: [PATCH 2/2] mapBubble: Set the no-padding CSS style on popover contents This makes the thumbnail align "flush on" with the edge of the popovers. --- data/gnome-maps.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/gnome-maps.css b/data/gnome-maps.css index 6837ec22..a09477b9 100644 --- a/data/gnome-maps.css +++ b/data/gnome-maps.css @@ -57,7 +57,7 @@ padding-left: 6px; } -.map-bubble { +.map-bubble contents { /* This is so the Wikipedia image is flush against the borders of the popover */ padding: 0; } @@ -112,4 +112,4 @@ .dropdown-searchbar { padding: 6px; border-bottom: 1px solid @borders; -} \ No newline at end of file +} -- GitLab