#580 improve the behaviour of the top toolbar

master
agriyadev5 2021-06-08 20:10:16 +05:30
parent 19490c04e3
commit f9e4268507
2 changed files with 14 additions and 10 deletions

View File

@ -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");
@ -917,6 +917,8 @@ class TopPanel {
<div class="toolset">
<se-button id="tool_bold" title="${i18next.t('properties.bold')}" src="./images/bold.svg" shortcut="B"></se-button>
<se-button id="tool_italic" title="${i18next.t('properties.italic')}" src="./images/italic.svg" shortcut="I"></se-button>
</div>
<div class="toolset">
<se-button id="tool_text_anchor_start" title="${i18next.t('properties.text_anchor_start')}" src="./images/anchor_start.svg">
</se-button>
<se-button id="tool_text_anchor_middle" title="${i18next.t('properties.text_anchor_middle')}" src="./images/anchor_middle.svg">

View File

@ -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 {