Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs-viewer/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ declaration mo member d =
else H.div_ [ P.class_ "args" ]
[ H.div_ [ P.class_ "arg" ]
[ H.code_ [ P.class_ "arg-type", prop "innerHTML" t ] []
, doc "doc arg-doc" ad
-- a cell even without a doc: the grid's rows stay in step
, H.div_ [ P.class_ "doc arg-doc", prop "innerHTML" ad ] []
]
| (t, ad) <- declArgs d ]
, doc "doc" (declDoc d)
Expand Down
7 changes: 7 additions & 0 deletions docs-viewer/static/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,13 @@ pre { margin: 0; }
.arg-doc { padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.arg-doc p { margin: 0; }
.arg:last-child .arg-type, .arg:last-child .arg-doc { border-bottom: 0; }
/* narrow: each doc under its type, so a long type does not push it off */
@media (max-width: 820px) {
.args { grid-template-columns: minmax(0, 1fr); }
.arg-type { border-bottom: 0; }
.arg-doc:empty { display: none; }
.arg:not(:last-child) .arg-type:has(+ .arg-doc:empty) { border-bottom: 1px solid var(--border); }
}

.subs { margin: 6px 0 12px; }
.subs-title, .instances summary {
Expand Down
Loading