Skip to content

Commit

Permalink
fix: show more only if description is present
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Mar 4, 2024
1 parent 31730aa commit 4423384
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { SIDE_PANE_OPTIONS } from '../../common/constants';
half page will have chat or participant view
*/
export const HLSViewTitle = () => {
const { title, details } = useRoomLayoutHeader();
const { title, details, description } = useRoomLayoutHeader();
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
const isDetailSidepaneOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.ROOM_DETAILS);

Expand Down Expand Up @@ -74,9 +74,11 @@ export const HLSViewTitle = () => {
) : null}
<Flex>
<RoomDetailsRow details={details} />
<Text variant="caption" css={{ color: '$on_surface_medium' }} onClick={toggleDetailsPane}>
&nbsp;...more
</Text>
{description ? (
<Text variant="caption" css={{ color: '$on_surface_medium' }} onClick={toggleDetailsPane}>
&nbsp;...more
</Text>
) : null}
</Flex>
</Flex>
</Flex>
Expand Down

0 comments on commit 4423384

Please sign in to comment.