mirror of
https://github.com/lbr77/blog-astro.git
synced 2026-04-08 16:11:56 +00:00
format
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
import * as interfaces from '../../lib/interfaces.ts'
|
||||
import { buildHeadingId } from '../../lib/blog-helpers.ts'
|
||||
import * as interfaces from '../../lib/interfaces.ts'
|
||||
import { snakeToKebab } from '../../lib/style-helpers.ts'
|
||||
import '../../styles/notion-color.css'
|
||||
|
||||
@@ -39,7 +39,7 @@ if (!block.TableOfContents) {
|
||||
)} ${indentClass}`}
|
||||
>
|
||||
{heading.RichTexts.map(
|
||||
(richText: interfaces.RichText) => richText.PlainText
|
||||
(richText: interfaces.RichText) => richText.PlainText,
|
||||
).join('')}
|
||||
</a>
|
||||
)
|
||||
@@ -52,6 +52,9 @@ if (!block.TableOfContents) {
|
||||
}
|
||||
.table-of-contents > a {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
line-height: 1.8rem;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
|
||||
Reference in New Issue
Block a user