/[sudobot]/trunk/docs/components/MDX/TableOfContents.tsx
ViewVC logotype

Diff of /trunk/docs/components/MDX/TableOfContents.tsx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 625 by rakinar2, Mon Jul 29 17:59:26 2024 UTC revision 626 by rakinar2, Sat Sep 7 09:38:45 2024 UTC
# Line 76  export default function TableOfContents( Line 76  export default function TableOfContents(
76                  {headings.map(heading => (                  {headings.map(heading => (
77                      <li key={heading.id}>                      <li key={heading.id}>
78                          <a                          <a
79                              className={`my-2 block ${                              className={`my-2 block pl-[15px] ${
80                                  activeId === heading.id || onlyOne                                  activeId === heading.id || onlyOne
81                                      ? "text-blue-500 [border-left:3px_solid_#007bff] pl-[15px]"                                      ? "text-blue-500 after:[content:'●'] after:ml-2 after:inline-block after:text-blue-500"
82                                      : "pl-[18px] hover:text-blue-500"                                      : "hover:text-blue-500"
83                              }`}                              }`}
84                              href={`#${heading.id}`}                              href={`#${heading.id}`}
85                              onClick={event => {                              onClick={event => {

Legend:
Removed from v.625  
changed lines
  Added in v.626

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26