diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 4bde86c78..afdd62e6c 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -179,19 +179,16 @@ class Editor: "colour", tr(TR.EDITING_SET_FOREGROUND_COLOUR_F7), """ -
""", + +""" ), self._addButton( None, "changeCol", tr(TR.EDITING_CHANGE_COLOUR_F8), """ -
""", + +""" ), self._addButton( "text_cloze", "cloze", tr(TR.EDITING_CLOZE_DELETION_CTRLANDSHIFTANDC) @@ -321,7 +318,7 @@ class Editor: else: imgelm = "" if label or not imgelm: - labelelm = f"""{label or cmd}""" + labelelm = label or cmd else: labelelm = "" if id: diff --git a/ts/editor/editor.scss b/ts/editor/editor.scss index 59f57f26c..1569cf29a 100644 --- a/ts/editor/editor.scss +++ b/ts/editor/editor.scss @@ -56,9 +56,15 @@ body { } .topbut { + display: inline-block; width: 16px; height: 16px; margin-top: 4px; + vertical-align: -.125em; +} + +.topbut--rounded { + border-radius: 5px; } .rainbow {