[gnome-maps/wip/cdavis/post-port-cleanups: 16/22] css: Remove `.maps-popover` style class




commit 6b33f62d7577a74f58eb276ae65d25386b810712
Author: Christopher Davis <christopherdavis gnome org>
Date:   Sun Aug 21 13:59:43 2022 -0400

    css: Remove `.maps-popover` style class
    
    This style class caused popovers to be aligned incorrectly.

 data/gnome-maps.css          | 4 ----
 data/ui/favorites-popover.ui | 3 ---
 src/layersPopover.js         | 2 --
 3 files changed, 9 deletions(-)
---
diff --git a/data/gnome-maps.css b/data/gnome-maps.css
index 786c8308..4487b627 100644
--- a/data/gnome-maps.css
+++ b/data/gnome-maps.css
@@ -1,7 +1,3 @@
-.maps-popover {
-    padding: 5px;
-}
-
 #dragged-entry {
     color: #939695;
 }
diff --git a/data/ui/favorites-popover.ui b/data/ui/favorites-popover.ui
index 15d17667..196c49c0 100644
--- a/data/ui/favorites-popover.ui
+++ b/data/ui/favorites-popover.ui
@@ -5,9 +5,6 @@
     <property name="hexpand">0</property>
     <property name="width-request">320</property>
     <property name="height-request">400</property>
-    <style>
-      <class name="maps-popover"/>
-    </style>
     <property name="child">
       <object class="GtkGrid" id="mainGrid">
         <property name="orientation">vertical</property>
diff --git a/src/layersPopover.js b/src/layersPopover.js
index d14b0005..682d6e5a 100644
--- a/src/layersPopover.js
+++ b/src/layersPopover.js
@@ -73,8 +73,6 @@ export class LayersPopover extends Gtk.Popover {
 
         //this._aerialLayerButton.join_group(this._streetLayerButton);
 
-        this.get_style_context().add_class('maps-popover');
-
         this._layersListBox.bind_model(this._mapView.shapeLayerStore,
                                        this._listBoxCreateWidget.bind(this));
         this._layersListBox.connect('row-activated', (lb, row) => {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]