Skip to content

Commit

Permalink
Merge pull request #6592 from kostyafarber/issue-6552
Browse files Browse the repository at this point in the history
Restyle about dialog
  • Loading branch information
jtpio authored Oct 20, 2022
2 parents d5c9f54 + c48ad1a commit 05ebf9d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
20 changes: 17 additions & 3 deletions packages/help-extension/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ const plugin: JupyterFrontEndPlugin<void> = {
);

const notebookURL = 'https://github.com/jupyter/notebook';
const linkLabel = trans.__('JUPYTER NOTEBOOK ON GITHUB');
const contributorURL = 'https://github.com/jupyter/notebook/pulse';
const aboutJupyter = trans.__('JUPYTER NOTEBOOK ON GITHUB');
const contributorList = trans.__('CONTRIBUTOR LIST');
const externalLinks = (
<span>
<a
Expand All @@ -134,15 +136,27 @@ const plugin: JupyterFrontEndPlugin<void> = {
rel="noopener noreferrer"
className="jp-Button-flat jp-AboutNotebook-about-externalLinks"
>
{linkLabel}
{aboutJupyter}
</a>
<a
href={contributorURL}
target="_blank"
rel="noopener noreferrer"
className="jp-Button-flat jp-AboutNotebook-about-externalLinks"
>
{contributorList}
</a>
</span>
);
const version = trans.__('Version: %1', app.version);
const copyright = trans.__('© 2021-2022 Jupyter Notebook Contributors');
const body = (
<>
<span className="jp-AboutNotebook-body">{version}</span>
<span className="jp-AboutNotebook-version">{version}</span>
<div>{externalLinks}</div>
<span className="jp-AboutNotebook-about-copyright">
{copyright}
</span>
</>
);

Expand Down
18 changes: 17 additions & 1 deletion packages/help-extension/style/base.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.jp-AboutNotebook .jp-Dialog-header {
justify-content: center;
padding: 0;
}

.jp-AboutNotebook-header {
Expand All @@ -13,12 +14,23 @@
margin-left: 16px;
}

.jp-AboutNotebook-version {
color: var(--jp-ui-font-color1);
font-size: var(--jp-ui-font-size1);
padding: var(--jp-flat-button-padding);
font-weight: 400;
letter-spacing: 0.4px;
line-height: 1.12;
min-width: 360px;
text-align: center;
}

.jp-AboutNotebook-body {
display: flex;
font-size: var(--jp-ui-font-size2);
padding: var(--jp-flat-button-padding);
color: var(--jp-ui-font-color1);
text-align: left;
text-align: center;
flex-direction: column;
min-width: 360px;
overflow: hidden;
Expand All @@ -37,6 +49,10 @@
color: var(--jp-warn-color0);
}

.jp-AboutNotebook-about-copyright {
padding-top: 25px;
}

.jp-AboutNotebook-shortcuts {
padding: 10px;
}
Expand Down

0 comments on commit 05ebf9d

Please sign in to comment.