Merge pull request #581 from SVG-Edit/issues/580
#580 improve the behaviour of the top toolbarmaster
commit
2d7adb075d
|
@ -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">
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue