mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-26 23:28:43 +00:00
feat(data): even corners and descriptions under titles in phone section headings (#66679)
This commit is contained in:
parent
3fa1bbac8a
commit
d0ccd5a00a
2 changed files with 18 additions and 2 deletions
|
|
@ -8272,10 +8272,25 @@ body {
|
|||
|
||||
[data-page="stats"] [data-slot="section-heading-row"] {
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
gap: 36px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
/* A section whose heading has controls starts them as far below its top line as they are from its right edge. */
|
||||
[data-page="stats"] [data-section]:has(> [data-slot="section-heading-row"]) {
|
||||
padding-top: 24px;
|
||||
}
|
||||
|
||||
/* Each description on its own line under its title, the title's full stop dropped. */
|
||||
[data-page="stats"] h2:has(> strong > [data-slot="heading-link"]) > span {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
[data-page="stats"] [data-slot="heading-stop"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
[data-page="stats"] [data-slot="section-heading-row"] > h2 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
|
@ -8284,6 +8299,7 @@ body {
|
|||
[data-page="stats"] [data-slot="section-heading-row"] > :not(h2) {
|
||||
order: -1;
|
||||
align-self: flex-end;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
[data-page="stats"] [data-slot="section-heading-row"] > [data-component="usage-filter"] {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ export function SectionHeading(props: {
|
|||
#
|
||||
</span>
|
||||
{props.title}
|
||||
{props.description ? "." : ""}
|
||||
{props.description && <span data-slot="heading-stop">.</span>}
|
||||
</a>
|
||||
</strong>
|
||||
{props.description && (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue