Skip to content

Commit

Permalink
Merge pull request #1861 from giovanniTramonto/T-1768-bugifx-lock-but…
Browse files Browse the repository at this point in the history
…ton-tooltip

fix: lock-button-tooltip #1768
  • Loading branch information
justvanrossum authored Dec 17, 2024
2 parents cb606aa + 7021082 commit 0c41855
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/fontra/client/web-components/ui-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ export class Form extends SimpleElement {
static styles = `
:host {
--label-column-width: 32%;
padding: 1em;
overflow: hidden auto;
}
.ui-form {
display: grid;
align-items: center;
grid-template-columns: var(--label-column-width) auto;
box-sizing: border-box;
gap: 0.35rem 0.35rem;
overflow-y: auto;
margin: 0em;
padding: 0em;
}
Expand Down
12 changes: 7 additions & 5 deletions src/fontra/views/editor/panel-selection-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,26 @@ export default class SelectionInfoPanel extends Panel {
.selection-info {
display: flex;
flex-direction: column;
gap: 1em;
justify-content: space-between;
box-sizing: border-box;
height: 100%;
width: 100%;
padding: 1em;
white-space: normal;
}
ui-form {
overflow-x: hidden;
overflow-y: auto;
.selection-info-form {
flex: 1;
}
.behavior-field {
padding: 1em;
}
`;

constructor(editorController) {
super(editorController);
this.infoForm = new Form();
this.infoForm.classList.add("selection-info-form");
this.contentElement.appendChild(this.infoForm);
this.contentElement.appendChild(this.setupBehaviorCheckBox());
this.throttledUpdate = throttleCalls((senderID) => this.update(senderID), 100);
Expand Down
8 changes: 5 additions & 3 deletions src/fontra/views/editor/panel-transformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ export default class TransformationPanel extends Panel {
.selection-transformation {
display: flex;
flex-direction: column;
gap: 1em;
justify-content: space-between;
box-sizing: border-box;
height: 100%;
width: 100%;
padding: 1em;
white-space: normal;
}
.selection-transformation-form {
flex: 1;
}
`;

static stylesForm = `
Expand Down Expand Up @@ -82,7 +84,7 @@ export default class TransformationPanel extends Panel {
constructor(editorController) {
super(editorController);
this.infoForm = new Form();

this.infoForm.classList.add("selection-transformation-form");
this.infoForm.appendStyle(TransformationPanel.stylesForm);
this.contentElement.appendChild(this.infoForm);
this.fontController = this.editorController.fontController;
Expand Down

0 comments on commit 0c41855

Please sign in to comment.