diff --git a/koordinates/gui/dataset_browser_items.py b/koordinates/gui/dataset_browser_items.py index 5dfe55d..4270213 100644 --- a/koordinates/gui/dataset_browser_items.py +++ b/koordinates/gui/dataset_browser_items.py @@ -458,15 +458,16 @@ def __init__(self, self.column_count = None self._mode = mode - style_sheet = """DatasetItemWidgetBase {{ - border-radius: {}px; background: white; - }}""".format(self.THUMBNAIL_CORNER_RADIUS) + item_style_sheet = "border-radius: {}px; background: white;".format( + self.THUMBNAIL_CORNER_RADIUS) if self._mode == StandardExploreModes.Browse: - style_sheet += """ - DatasetItemWidgetBase {{ - border: 1px solid #dddddd; - }}""" + item_style_sheet += "\nborder: 1px solid #dddddd;" + + style_sheet = f"""DatasetItemWidgetBase + {{ + {item_style_sheet} + }}""" self.setStyleSheet(style_sheet) self.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)