Skip to content

Commit

Permalink
Fix feedback (#535)
Browse files Browse the repository at this point in the history
* fix: li styles in md

* fix: download pdf condition
  • Loading branch information
shhdgit authored Sep 14, 2024
1 parent fd7a2d9 commit b3116d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/components/MDXComponents/DocHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ export function DocHomeContainer(
component="li"
className="toc-li"
sx={{
"&.toc-li": {
marginTop: "0",
},
"& a#toc-link": {
color: theme.palette.website.m5,
"&:hover": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation/RightNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function RightNav(props: RightNavProps) {

{language !== "ja" && (
<Stack spacing={1}>
{pageType === "tidb" && (
{pageType !== "tidbcloud" && (
<ActionItem
icon={SimCardDownloadIcon}
url={`https://download.pingcap.org/${pdfUrlMemo}`}
Expand Down
8 changes: 4 additions & 4 deletions src/styles/docTemplate.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
list-style: initial;
}

li:not(:first-of-type, .toc-li) {
margin-top: 8px;
}

table {
th,
td {
Expand Down Expand Up @@ -140,4 +136,8 @@
h6 {
font-weight: 500;
}

li + li {
margin-top: 8px;
}
}

0 comments on commit b3116d1

Please sign in to comment.