Skip to content

Commit

Permalink
Merge pull request #1914 from ejuda/1874/indicate-abstract-classes
Browse files Browse the repository at this point in the history
Display flags next to class name
  • Loading branch information
Gerrit0 authored Apr 9, 2022
2 parents 3cb756e + e0306ec commit 9d9381e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/lib/output/themes/default/partials/header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Reflection } from "../../../../models";
import { JSX } from "../../../../utils";
import type { PageEvent } from "../../../events";
import { hasTypeParameters, join } from "../../lib";
import { hasTypeParameters, join, renderFlags } from "../../lib";
import type { DefaultThemeRenderContext } from "../DefaultThemeRenderContext";

export const header = (context: DefaultThemeRenderContext, props: PageEvent<Reflection>) => (
Expand Down Expand Up @@ -77,7 +77,8 @@ export const header = (context: DefaultThemeRenderContext, props: PageEvent<Refl
{join(", ", props.model.typeParameters, (item) => item.name)}
{">"}
</>
)}
)}{" "}
{renderFlags(props.model.flags)}
</h1>
</div>
</div>
Expand Down
5 changes: 3 additions & 2 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -766,12 +766,13 @@ footer .tsd-legend {

.tsd-flag {
display: inline-block;
padding: 1px 5px;
padding: 0.25em 0.4em;
border-radius: 4px;
color: var(--color-comment-tag-text);
background-color: var(--color-comment-tag);
text-indent: 0;
font-size: 14px;
font-size: 75%;
line-height: 1;
font-weight: normal;
}

Expand Down

0 comments on commit 9d9381e

Please sign in to comment.