Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 3, 2023
1 parent 5f956a4 commit e58503b
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 28 deletions.
1 change: 0 additions & 1 deletion src/renderer/assets/css/section.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
transform 0.12s ease-in-out;
}


nwb-main h3,
nwb-main p {
color: var(--color);
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const pages = {
start: new GuidedStartPage({
label: "Start",
}),

details: new GuidedNewDatasetPage({
title: "Project Setup",
label: "Project details",
Expand Down
42 changes: 25 additions & 17 deletions src/renderer/src/stories/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,25 +144,33 @@ export class Main extends LitElement {

return html`
${headerEl}
${capsules
? html`<div style="width: 100%; text-align: center; padding-top: 15px;">${capsules}</div>`
: html``}
${title
? html`<div
style="position: sticky; padding: 0px 50px; top: 0; left: 0; background: white; z-index: 1; ${capsules ? '' : 'padding-top: 35px;'}"
>
<div style="display: flex; flex: 1 1 0px; justify-content: space-between; align-items: end;">
<div style="line-height: 1em; color: gray;">
<h1 class="title" style="margin: 0; padding: 0; color:black;">${title}</h1>
<small>${unsafeHTML(subtitle)}</small>
${
capsules
? html`<div style="width: 100%; text-align: center; padding-top: 15px;">${capsules}</div>`
: html``
}
${
title
? html`<div
style="position: sticky; padding: 0px 50px; top: 0; left: 0; background: white; z-index: 1; ${capsules
? ""
: "padding-top: 35px;"}"
>
<div style="display: flex; flex: 1 1 0px; justify-content: space-between; align-items: end;">
<div style="line-height: 1em; color: gray;">
<h1 class="title" style="margin: 0; padding: 0; color:black;">${title}</h1>
<small>${unsafeHTML(subtitle)}</small>
</div>
<div style="padding-left: 25px;">${controls}</div>
</div>
<div style="padding-left: 25px;">${controls}</div>
</div>
<hr style="margin-bottom: 0;" />
</div>`
: ""}
<hr style="margin-bottom: 0;" />
</div>`
: ""
}
<main id="content" class="js-content" style="overflow: hidden; ${capsules || title ? '' : 'padding-top: 35px;'}"">
<main id="content" class="js-content" style="overflow: hidden; ${
capsules || title ? "" : "padding-top: 35px;"
}"">
<section class="section">${page}</section>
</main>
${footerEl}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const propsToIgnore = [
];

export class GuidedSourceDataPage extends ManagedPage {


constructor(...args) {
super(...args);
this.style.height = "100%"; // Fix main section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ export class GuidedStructurePage extends Page {
this.addButton.setAttribute("hidden", "");

return html`
<div style="width: 100%; display: flex; flex-direction: column; align-items: center;">${this.list} ${this.addButton}</div>
<div style="width: 100%; display: flex; flex-direction: column; align-items: center;">
${this.list} ${this.addButton}
</div>
${this.searchModal}
`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class GuidedStubPreviewPage extends Page {
constructor(...args) {
super(...args);
this.style.height = "100%"; // Fix main section

}

header = {
Expand Down
8 changes: 3 additions & 5 deletions src/renderer/src/stories/pages/settings/SettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class SettingsPage extends Page {
if (!this.unsavedUpdates) return this.#openNotyf("All changes were already saved", "success");
this.save();
},
})
]
}),
],
};

constructor(...args) {
Expand Down Expand Up @@ -76,9 +76,7 @@ export class SettingsPage extends Page {
onThrow,
});

return html`
${this.form}
`;
return html` ${this.form} `;
}
}

Expand Down

0 comments on commit e58503b

Please sign in to comment.