Merge pull request #581 from SVG-Edit/issues/580

#580 improve the behaviour of the top toolbar
master
JFH 2021-06-08 17:26:52 +02:00 committed by GitHub
commit 2d7adb075d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {