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
6 changes: 3 additions & 3 deletions src/app/components/elements/ContentPropertyTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ export const QuestionPropertyTags = ({ deprecated, supersededBy, tags, ...rest }
})}

{supersededBy && isTeacherOrAbove(user) && <a
className="pill-tag-outline"
className="pill-tag-outline mw-max-content"
href={`/questions/${supersededBy}`}
onClick={(e) => e.stopPropagation()}
target="_blank"
>SUPERSEDED</a>}

{deprecated && isTeacherOrAbove(user) && <span
className="pill-tag-outline"
className="pill-tag-outline mw-max-content"
>DEPRECATED</span>}

{tags?.includes("nofilter") && isStaff(user) && <span
className="pill-tag-outline"
className="pill-tag-outline mw-max-content"
>NO-FILTER</span>}
</div>;
};
6 changes: 5 additions & 1 deletion src/app/components/elements/cards/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Card, CardImg, CardBody, CardTitle, Badge, CardText, CardProps } from "
import { Spacer } from "../Spacer";
import classNames from "classnames";
import { AdaCard } from "./AdaCard";
import { QuestionPropertyTags } from "../ContentPropertyTags";

const IconText = ({icon, children}: {icon: string, children: React.ReactNode}) => {
return <div className="d-inline-flex">
Expand Down Expand Up @@ -79,7 +80,10 @@ export const PhysicsEventCard = ({event, layout, ...rest}: {event: AugmentedEven
</div>}
</Link>}
<CardBody className="d-flex flex-column">
{title && <CardTitle className="mb-0 pod-title" id={`event-title-${id}`}><h5>{title}</h5></CardTitle>}
<CardTitle className="mb-0 pod-title d-flex align-items-baseline" id={`event-title-${id}`}>
{title && <h5 className="mb-0 me-2">{title}</h5>}
<QuestionPropertyTags tags={event.tags} />
</CardTitle>
{subtitle && <CardText className="mb-2 fixed-height">
{subtitle}
</CardText>}
Expand Down
2 changes: 2 additions & 0 deletions src/app/components/elements/list-groups/ListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const ConceptListViewItem = ({item, ...rest}: ConceptListViewItemProps) =
icon={icon}
title={item.title ?? ""}
subject={itemSubject !== "neutral" ? itemSubject : undefined}
tags={item.tags}
subtitle={item.summary ?? item.subtitle}
breadcrumb={breadcrumb}
url={url}
Expand Down Expand Up @@ -133,6 +134,7 @@ export const EventListViewItem = ({item, ...rest}: EventListViewItemProps) => {
title={item.title ?? ""}
subject={itemSubject}
subtitle={item.subtitle}
tags={item.tags}
url={url}
{...rest}
/>;
Expand Down
Loading