Skip to content

Commit

Permalink
Merge pull request #806 from googlefonts/scrollbars
Browse files Browse the repository at this point in the history
Show scrollbars only if needed.
  • Loading branch information
justvanrossum authored Sep 14, 2023
2 parents 536db19 + 8b4e456 commit 8d27483
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/fontra/client/web-components/designspace-location.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class DesignspaceLocation extends UnlitElement {
display: grid;
grid-template-columns: 25% auto;
gap: 0.4em;
overflow: scroll;
overflow: auto;
}
.slider-label {
Expand Down
2 changes: 1 addition & 1 deletion src/fontra/client/web-components/grouped-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SimpleSettings } from "./simple-settings.js";
export class GroupedSettings extends UnlitElement {
static styles = `
:host {
overflow-y: scroll;
overflow-y: auto;
}
.header {
Expand Down
2 changes: 1 addition & 1 deletion src/fontra/client/web-components/ui-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class Form extends SimpleElement {
grid-template-columns: 32% 68%;
gap: 0.35rem 0.35rem;
overflow-x: hidden;
overflow-y: scroll;
overflow-y: auto;
}
.ui-form-label {
Expand Down
2 changes: 1 addition & 1 deletion src/fontra/filesystem/landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ a {

#project-list {
display: grid;
overflow-y: scroll;
overflow-y: auto;
}

.project-item {
Expand Down
8 changes: 0 additions & 8 deletions src/fontra/views/editor/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -330,14 +330,6 @@ body {
padding: 0.5em;
}

.axis-sliders {
display: flex;
flex-direction: column;
gap: 0.4em;
overflow: scroll;
padding-bottom: 0.4em;
}

.canvas-container {
position: relative; /* for the children */
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/fontra/views/editor/panel-designspace-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ export default class DesignspaceNavigationPanel extends Panel {
const locationElement = html.createDomElement("designspace-location", {
style: `grid-column: 1 / -1;
min-height: 0;
overflow: scroll;
overflow: auto;
height: 100%;
`,
});
Expand Down
2 changes: 1 addition & 1 deletion src/fontra/views/editor/panel-selection-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class SelectionInfoPanel extends Panel {
height: 100%;
width: 100%;
overflow-x: hidden;
overflow-y: scroll;
overflow-y: auto;
padding: 1em;
}
`;
Expand Down
2 changes: 1 addition & 1 deletion src/fontra/views/editor/panel-text-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class TextEntryPanel extends Panel {
font-family: fontra-ui-regular, sans-serif;
font-size: 1.1rem;
resize: none;
overflow-x: scroll;
overflow-x: auto;
}
`;

Expand Down

0 comments on commit 8d27483

Please sign in to comment.