Skip to content

Commit

Permalink
fix: add ellipsis style to summary elements for improved layout
Browse files Browse the repository at this point in the history
  • Loading branch information
baka-gourd committed Oct 10, 2024
1 parent 80575af commit 54748e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,13 @@ summary::after {
right: 0;
}

details > summary {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100vw;
}

details[open] > summary::after {
transform: rotate(90deg);
}

0 comments on commit 54748e7

Please sign in to comment.