Skip to content

Commit ea30b27

Browse files
committed
release: v2.9.8 bolder, roomier header toolbar
Raise min bar height, semibold 15px labels, 20px icons, align flex area with calc(100% - 56px); drop cramped .project height cap.
1 parent 487ea24 commit ea30b27

5 files changed

Lines changed: 25 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.9.8
4+
5+
- style(ui): taller header toolbar, stronger action labels (\`font-weight: 600\`, 15px), larger icons; fix main layout \`calc\` to match bar height
6+
37
## 2.9.7
48

59
- fix(ui): GitHub toolbar control is icon-only and placed after Export

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "md2pdf",
3-
"version": "2.9.7",
3+
"version": "2.9.8",
44
"description": "In-browser Markdown to PDF: GFM preview, syntax-highlighted code, Mermaid, PWA/offline. Local conversion, no upload to an app server. Fork of realdennis/md2pdf (MIT).",
55
"keywords": [
66
"markdown",

src/App/Components/Header/Upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default (props) => {
5757
cursor: 'pointer',
5858
}}
5959
/>
60-
<FileEarmarkArrowUpFill size={18} aria-label="Import .md file" />
60+
<FileEarmarkArrowUpFill size={20} aria-label="Import .md file" />
6161
<span>Import .md file</span>
6262
</p>
6363
);

src/App/Components/Header/index.js

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const Header = ({ className }) => {
4040
<div className="menu">
4141
<UploadButton className="button upload" />
4242
<p className="button download primary" onClick={onTransform} tabIndex={0}>
43-
<FileEarmarkPdfFill size={18} aria-label="Export to PDF" />
43+
<FileEarmarkPdfFill size={20} aria-label="Export to PDF" />
4444
<span>Export to .pdf</span>
4545
</p>
4646
<a
@@ -50,7 +50,7 @@ const Header = ({ className }) => {
5050
rel="noopener noreferrer"
5151
aria-label="View source on GitHub"
5252
>
53-
<Github size={18} aria-hidden />
53+
<Github size={20} aria-hidden />
5454
</a>
5555
</div>
5656
</header>
@@ -67,27 +67,28 @@ export default styled(Header)`
6767
overflow: auto;
6868
-webkit-overflow-scrolling: touch;
6969
user-select: none;
70-
padding: 0 12px;
70+
padding: 0 14px;
7171
font-family: inherit;
7272
color: #1f2328;
7373
background-color: #f6f8fa;
7474
border-bottom: 1px solid #d0d7de;
7575
display: flex;
7676
align-items: center;
77-
height: 48px;
77+
min-height: 56px;
78+
-webkit-font-smoothing: antialiased;
7879
7980
.project {
8081
font-weight: 600;
8182
font-size: 15px;
8283
letter-spacing: 0.2px;
83-
margin: 5px;
84+
margin: 0;
8485
flex-shrink: 0;
85-
height: 20px;
86+
line-height: 1.35;
8687
8788
small {
8889
margin-left: 4px;
89-
color: #6c757d;
90-
font-weight: 400;
90+
color: #656d76;
91+
font-weight: 500;
9192
}
9293
9394
@media (max-width: 420px) {
@@ -109,18 +110,19 @@ export default styled(Header)`
109110
}
110111
111112
.button {
112-
height: 32px;
113-
min-width: 60px;
113+
height: 36px;
114+
min-width: 64px;
114115
display: flex;
115116
align-items: center;
116117
justify-content: center;
117118
margin-left: 8px;
118-
padding: 0 12px;
119-
font-size: 14px;
119+
padding: 0 14px;
120+
font-size: 15px;
120121
font-family: inherit;
121-
font-weight: 500;
122+
font-weight: 600;
123+
letter-spacing: 0.01em;
122124
border: 1px solid #d0d7de;
123-
border-radius: 6px;
125+
border-radius: 8px;
124126
cursor: pointer;
125127
background-color: #ffffff;
126128
color: #1f2328;
@@ -161,8 +163,8 @@ export default styled(Header)`
161163
}
162164
163165
&.icon-only {
164-
min-width: 34px;
165-
width: 34px;
166+
min-width: 38px;
167+
width: 38px;
166168
padding: 0;
167169
margin-left: 8px;
168170
}

src/App/Components/Markdown/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default styled(Markdown)`
144144
* {
145145
box-sizing: border-box;
146146
}
147-
height: calc(100% - 40px);
147+
height: calc(100% - 56px);
148148
display: flex;
149149
flex-direction: column;
150150

0 commit comments

Comments
 (0)