Skip to content

Commit 9d9381e

Browse files
authored
Merge pull request #1914 from ejuda/1874/indicate-abstract-classes
Display flags next to class name
2 parents 3cb756e + e0306ec commit 9d9381e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/lib/output/themes/default/partials/header.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Reflection } from "../../../../models";
22
import { JSX } from "../../../../utils";
33
import type { PageEvent } from "../../../events";
4-
import { hasTypeParameters, join } from "../../lib";
4+
import { hasTypeParameters, join, renderFlags } from "../../lib";
55
import type { DefaultThemeRenderContext } from "../DefaultThemeRenderContext";
66

77
export const header = (context: DefaultThemeRenderContext, props: PageEvent<Reflection>) => (
@@ -77,7 +77,8 @@ export const header = (context: DefaultThemeRenderContext, props: PageEvent<Refl
7777
{join(", ", props.model.typeParameters, (item) => item.name)}
7878
{">"}
7979
</>
80-
)}
80+
)}{" "}
81+
{renderFlags(props.model.flags)}
8182
</h1>
8283
</div>
8384
</div>

static/style.css

+3-2
Original file line numberDiff line numberDiff line change
@@ -766,12 +766,13 @@ footer .tsd-legend {
766766

767767
.tsd-flag {
768768
display: inline-block;
769-
padding: 1px 5px;
769+
padding: 0.25em 0.4em;
770770
border-radius: 4px;
771771
color: var(--color-comment-tag-text);
772772
background-color: var(--color-comment-tag);
773773
text-indent: 0;
774-
font-size: 14px;
774+
font-size: 75%;
775+
line-height: 1;
775776
font-weight: normal;
776777
}
777778

0 commit comments

Comments
 (0)