diff --git a/src/app/components/elements/list-groups/AbstractListViewItem.tsx b/src/app/components/elements/list-groups/AbstractListViewItem.tsx index 309f4fd3ba..2fe1a108be 100644 --- a/src/app/components/elements/list-groups/AbstractListViewItem.tsx +++ b/src/app/components/elements/list-groups/AbstractListViewItem.tsx @@ -159,14 +159,14 @@ export type AbstractListViewItemProps = { subtitle?: string; breadcrumb?: string[]; tags?: string[]; - fullWidth?: boolean; + forceFullWidth?: boolean; url?: string; state?: AbstractListViewItemState; className?: string; hasCaret?: boolean; } & ALVIType & ALVILayout; -export const AbstractListViewItem = ({title, icon, subject, subtitle, breadcrumb, tags, fullWidth, url, state, className, hasCaret, ...typedProps}: AbstractListViewItemProps) => { +export const AbstractListViewItem = ({title, icon, subject, subtitle, breadcrumb, tags, forceFullWidth, url, state, className, hasCaret, ...typedProps}: AbstractListViewItemProps) => { const deviceSize = useDeviceSize(); const user = useAppSelector(selectors.user.orNull); @@ -179,7 +179,9 @@ export const AbstractListViewItem = ({title, icon, subject, subtitle, breadcrumb const isCrossTopic = isAda && tags?.includes("cross_topic"); const isLLM = tags?.includes("llm_question_page"); - fullWidth = fullWidth || below["sm"](deviceSize) || (isItem && !(typedProps.status || typedProps.audienceViews)); + const fullWidth = forceFullWidth || below["sm"](deviceSize) || (isItem && !(typedProps.status || typedProps.audienceViews)); + const wrapTitleTags = below["xs"](deviceSize) || (isDefined(forceFullWidth) && !forceFullWidth); + const cardBody = <>