From f9e426850700a8ceabb29b3bb0b743e2f6796404 Mon Sep 17 00:00:00 2001 From: agriyadev5 Date: Tue, 8 Jun 2021 20:10:16 +0530 Subject: [PATCH] #580 improve the behaviour of the top toolbar --- src/editor/panels/TopPanel.js | 20 +++++++++++--------- src/editor/svgedit.css | 4 +++- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/editor/panels/TopPanel.js b/src/editor/panels/TopPanel.js index 6e089b5e..c8a03715 100644 --- a/src/editor/panels/TopPanel.js +++ b/src/editor/panels/TopPanel.js @@ -322,7 +322,7 @@ class TopPanel { }); if (tagName === "text") { - $id("text_panel").style.display = "inline-block"; + $id("text_panel").style.display = 'block'; $id("tool_italic").pressed = this.editor.svgCanvas.getItalic(); $id("tool_bold").pressed = this.editor.svgCanvas.getBold(); $id("tool_font_family").value = elem.getAttribute("font-family"); @@ -914,17 +914,19 @@ class TopPanel {
-
+
+
+
-
- +
+ ${i18next.t('properties.serif')} ${i18next.t('properties.sans_serif')} ${i18next.t('properties.cursive')} @@ -933,12 +935,12 @@ class TopPanel { ${i18next.t('properties.courier')} ${i18next.t('properties.helvetica')} ${i18next.t('properties.times')} - - + - - -
+ + +
diff --git a/src/editor/svgedit.css b/src/editor/svgedit.css index 5a27587e..890677af 100644 --- a/src/editor/svgedit.css +++ b/src/editor/svgedit.css @@ -326,8 +326,10 @@ hr { height: 34px; } #tools_top se-spin-input, #tools_top se-list { - margin-top: 5px; + margin-top: 0; height: 34px; + position: relative; + top: 5px; } #tools_top se-dropdown-list {