Skip to content

Commit 5984c23

Browse files
committed
update ui
1 parent daa52c7 commit 5984c23

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

src/components/PageContent/Feedback.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const Feedback = () => {
3737
}
3838
setRating(selectedNumber + 1)
3939
setIsSent(false)
40-
const path = "https://leancloud.scroll.io/1.1/classes/Feedback"
40+
const path = "https://hviedclg.api.lncldglobal.com/1.1/classes/Feedback"
4141
const data = {
4242
rating: selectedNumber,
4343
time: Date.now(),
@@ -65,7 +65,7 @@ export const Feedback = () => {
6565
url: window.location.href,
6666
}
6767

68-
const path = "https://leancloud.scroll.io/1.1/classes/Feedback"
68+
const path = "https://hviedclg.api.lncldglobal.com/1.1/classes/Feedback"
6969
setIsSubmitting(true)
7070
fetch(path, {
7171
method: "POST",
@@ -90,6 +90,8 @@ export const Feedback = () => {
9090
}}
9191
style={{
9292
cursor: "pointer",
93+
// marginRight: "10px",
94+
marginLeft: "10px",
9395
}}
9496
>
9597
{rating >= i + 1 ? star : starOutline}
@@ -119,7 +121,7 @@ export const Feedback = () => {
119121
<textarea
120122
name="msg"
121123
rows="4"
122-
style={{ borderWidth: " 0", padding: "15px", caretColor: "#C4C4C4", outline: "none" }}
124+
style={{ borderWidth: " 0", padding: "15px", caretColor: "#C4C4C4", outline: "none", fontSize: "1rem" }}
123125
/>
124126
<button
125127
className={button.primary}

src/components/RightSidebar/RightSidebar.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ const { content, githubEditUrl, headings, clientSideToc } = Astro.props
3434
}
3535

3636
.sidebar-nav-inner {
37-
padding: 0 20px 70px;
37+
padding: 16px 20px 70px 4px;
3838
overflow: auto;
3939
background: #fff0dd;
4040
border-radius: 1em;
41-
width: 250px;
4241
float: right;
43-
@apply pt-doc;
42+
width: 280px;
43+
/* width: 250px; */
44+
max-height: 100%;
45+
/* @apply pt-doc; */
4446
}
4547
.sidebar-nav-inner > * {
4648
margin-top: 1rem;

src/pages/[lang]/[...slug].astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ export async function getStaticPaths() {
3838
let page = Astro.props
3939
let params = Astro.params
4040
// Only call render if page is not translated
41-
let Content
41+
let Content, headings
4242
if (!page.notTranslated) {
43-
Content = (await page.render()).Content
43+
const render = await page.render()
44+
Content = render.Content
45+
headings = render.headings
4446
} else {
4547
changeLanguage(params.lang)
4648
}
@@ -53,7 +55,7 @@ const content = {
5355

5456
{
5557
Content ? (
56-
<MainLayout content={content} headings={[]}>
58+
<MainLayout content={content} headings={headings}>
5759
<Content />
5860
</MainLayout>
5961
) : (

src/styles/index.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,16 +268,17 @@ img {
268268
}
269269

270270
h2.heading {
271-
font-size: 1rem;
271+
font-size: 18px;
272272
font-weight: 700;
273273
padding: 0.1rem 1rem;
274274
/* text-transform: uppercase; */
275275
margin-bottom: 0.5rem;
276276
}
277277

278278
.header-link {
279-
font-size: 1rem;
280-
padding: 0.1rem 0 0.1rem 1rem;
279+
font-size: 18px;
280+
line-height: normal;
281+
padding: 0 0 10px 1rem;
281282
margin-left: 1rem;
282283
border-color: var(--black-100);
283284
@apply border-0 border-l-[4px] border-solid;
@@ -319,6 +320,10 @@ h2.heading {
319320
color: inherit;
320321
text-decoration: none;
321322
}
323+
.header-link a span {
324+
font-size: 18px;
325+
line-height: normal;
326+
}
322327

323328
/* Screenreader Only Text */
324329
.sr-only {

0 commit comments

Comments
 (0)