Skip to content

Commit d83cea6

Browse files
authored
Update HelpDialog.html
1 parent dcb45bd commit d83cea6

1 file changed

Lines changed: 27 additions & 22 deletions

File tree

AppScript/HelpDialog.html

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,64 +12,58 @@
1212
box-sizing: border-box;
1313
animation: fadeIn 0.3s ease-out;
1414
}
15-
1615
@keyframes fadeIn {
1716
from { opacity: 0; transform: scale(0.96); }
1817
to { opacity: 1; transform: scale(1); }
1918
}
20-
2119
@keyframes fadeOut {
2220
to { opacity: 0; transform: scale(0.96); }
2321
}
24-
2522
.container {
2623
padding: 24px;
2724
box-sizing: border-box;
2825
}
29-
30-
.dialog-title {
31-
font-size: 20px;
32-
font-weight: 600;
33-
margin-bottom: 20px;
34-
}
35-
3626
.card-box {
27+
background-color: #f9f9f9;
3728
border: 1px solid #dadce0;
3829
border-radius: 4px;
3930
padding: 16px;
4031
margin-bottom: 20px;
4132
}
42-
4333
.section-title {
4434
font-weight: 600;
4535
font-size: 14px;
4636
margin-bottom: 6px;
4737
}
48-
38+
.getting-started .section-title {
39+
color: #1a73e8;
40+
}
41+
.export .section-title {
42+
color: #188038;
43+
}
44+
.default-page-setup .section-title {
45+
color: #d93025;
46+
}
4947
.section-desc {
5048
font-size: 14px;
5149
color: #5f6368;
5250
line-height: 1.6;
5351
}
54-
5552
.section-desc strong {
5653
color: #202124;
5754
font-weight: 600;
5855
}
59-
6056
.button-row {
6157
display: flex;
6258
justify-content: space-between;
6359
align-items: center;
6460
margin-top: 16px;
6561
}
66-
6762
.button-left,
6863
.button-right {
6964
display: flex;
70-
gap: 24px;
65+
gap: 0px;
7166
}
72-
7367
.material-button {
7468
font-size: 13px;
7569
font-weight: 600;
@@ -80,7 +74,6 @@
8074
transition: background-color 0.2s;
8175
white-space: nowrap;
8276
}
83-
8477
.material-button:hover {
8578
background-color: rgba(26, 115, 232, 0.1);
8679
text-decoration: none;
@@ -93,25 +86,37 @@
9386
google.script.host.close();
9487
}, 250);
9588
}
96-
9789
document.addEventListener("keydown", (e) => {
9890
if (e.key === "Escape") closeDialog();
9991
});
10092
</script>
10193
</head>
10294
<body>
10395
<div class="container">
104-
<div class="card-box">
105-
<div class="section-title">Getting started</div>
96+
<div class="card-box getting-started">
97+
<div class="section-title">Getting Started</div>
10698
<div class="section-desc">
10799
Open the Custom Page Sizer by going to:<br>
108100
<strong>Extensions → Adam Natad – Custom Page Sizer → Start</strong>
109101
</div>
110102
</div>
111-
103+
<div class="card-box export">
104+
<div class="section-title">Export or Download Note</div>
105+
<div class="section-desc">
106+
<strong>NOTE:</strong> Do not export or download directly to PDF from Google Docs as this may cause incorrect page dimensions. Instead, export your document as a <strong>.docx</strong> file by selecting <em>File → Download → Microsoft Word (.docx)</em>. Open the file in MS Word, verify the page size via <em>Layout → Size → More Paper Sizes…</em>, and then convert it to PDF.
107+
</div>
108+
</div>
109+
<div class="card-box default-page-setup">
110+
<div class="section-title">Google Default Page Setup</div>
111+
<div class="section-desc">
112+
<strong>WARNING:</strong> Setting a custom page size that is not officially supported by Google Docs may cause the default
113+
<i>File → Page Setup</i> option to become unusable. To restore access, use this add-on to switch back to a Google-supported paper size.
114+
</div>
115+
</div>
112116
<div class="button-row">
113117
<div class="button-left">
114118
<a class="material-button" href="https://www.natadtech.com" target="_blank">Learn more</a>
119+
<a class="material-button" href="#" target="_blank">View in store</a>
115120
</div>
116121
<div class="button-right">
117122
<a class="material-button" href="https://github.com/AdamNatad/PageSizer" target="_blank">View source code</a>

0 commit comments

Comments
 (0)