Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show scrollbars only if needed. #806

Merged
merged 4 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
fabiocaccamo marked this conversation as resolved.
Show resolved Hide resolved
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