Skip to content

Commit

Permalink
Fixes #41: Alignment fixes in bottom bar
Browse files Browse the repository at this point in the history
  • Loading branch information
AgriyaDev5 committed Jan 7, 2021
1 parent 8d97f7e commit 3a085e7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/editor/components/seList.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ template.innerHTML = `
}
</style>
<label>Label</label>
<elix-dropdown-list>
<elix-dropdown-list style="height:22px; width:22px">
<slot></slot>
</elix-dropdown-list>
Expand All @@ -35,6 +35,9 @@ export class SeList extends HTMLElement {
this._shadowRoot.append(template.content.cloneNode(true));
this.$dropdown = this._shadowRoot.querySelector('elix-dropdown-list');
this.$label = this._shadowRoot.querySelector('label');
if(this.getAttribute('id') === 'tool_font_family') {
this.$dropdown.style.width = '66px';
}
}
/**
* @function observedAttributes
Expand Down
2 changes: 1 addition & 1 deletion src/editor/components/sePalette.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ template.innerHTML = `
}
</style>
<div title="Click to change fill color, shift-click to change stroke color">
<elix-centered-strip style="width:300px">
<elix-centered-strip style="width:300px;padding:5px;background: #fff; border-radius: 5px;">
</elix-centered-strip>
</div>
`;
Expand Down
5 changes: 2 additions & 3 deletions src/editor/components/seSpinInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ const template = document.createElement('template');
template.innerHTML = `
<style>
img {
top: 2px;
left: 1px;
position: relative;
margin:0 2px 0 0;
}
span {
bottom: 1px;
Expand All @@ -19,7 +18,7 @@ template.innerHTML = `
}
elix-number-spin-box{
width: 54px;
height: 25px;
height: 24px;
}
</style>
<img src="./images/logo.svg" alt="icon" width="12" height="12" aria-labelledby="label" />
Expand Down
7 changes: 6 additions & 1 deletion src/editor/svgedit.css
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ hr {
min-height: 40px;
border-bottom: none;
overflow: auto;
right:2px;
}

#tools_top .tool_sep {
Expand Down Expand Up @@ -646,8 +647,12 @@ input[type=text] {
#tools_bottom se-spin-input {
float: left;
vertical-align: middle;
display:flex;
align-items: center;
}
#tools_bottom elix-dropdown-list{
width:22px;
}

.bottom-icon {
width: 22px;
}
Expand Down

0 comments on commit 3a085e7

Please sign in to comment.