diff --git a/ankiqt/ui/importing.py b/ankiqt/ui/importing.py
index 5588f0484..5fd02c5c8 100644
--- a/ankiqt/ui/importing.py
+++ b/ankiqt/ui/importing.py
@@ -224,7 +224,10 @@ you can enter it here. Use \\t to represent tab."""),
def setupMappingFrame(self):
# qt seems to have a bug with adding/removing from a grid, so we add
# to a separate object and add/remove that instead
- self.mapbox = QVBoxLayout(self.dialog.mappingArea)
+ self.frame = QFrame(self.dialog.mappingArea)
+ self.dialog.mappingArea.setWidget(self.frame)
+ self.mapbox = QVBoxLayout(self.frame)
+ self.mapbox.setContentsMargins(0,0,0,0)
self.mapwidget = None
def hideMapping(self):
@@ -262,8 +265,8 @@ you can enter it here. Use \\t to represent tab."""),
self.mapbox.addWidget(self.mapwidget)
self.grid = QGridLayout(self.mapwidget)
self.mapwidget.setLayout(self.grid)
- self.grid.setMargin(6)
- self.grid.setSpacing(12)
+ self.grid.setMargin(3)
+ self.grid.setSpacing(6)
fields = self.importer.fields()
for num in range(len(self.mapping)):
text = _("Field %d of file is:") % (num + 1)
diff --git a/designer/importing.ui b/designer/importing.ui
index 751f9945b..f2454df23 100644
--- a/designer/importing.ui
+++ b/designer/importing.ui
@@ -6,8 +6,8 @@
0
0
- 440
- 513
+ 527
+ 430
@@ -42,7 +42,7 @@
-
-
+
0
0
@@ -59,22 +59,6 @@
-
-
-
-
-
-
- 0
- 0
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
-
-
-
@@ -93,6 +77,38 @@
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 400
+ 150
+
+
+
+ QFrame::NoFrame
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 400
+ 150
+
+
+
+
+