Skip to content

Commit

Permalink
adjust tag message list to be more similar to topic message list styl…
Browse files Browse the repository at this point in the history
…ing (#5)
  • Loading branch information
Mike Zrimsek authored Apr 13, 2024
1 parent c8e9500 commit 36cfef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/MergedTopicsMessageList.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const MergedTopicsMessageList: React.FC<MergedTopicsMessageListProps> = ({
const topics = topicMessages.map((x) => x.topicConfig?.name).join(", ");

return (
<div className="rounded-lg shadow-md px-4 py-4">
<div className="rounded-lg shadow-md px-1 py-1">
<div className="flex flex-col mb-4">
<h1 className="text-xl font-bold">{tag}</h1>
<h2 className="text-md text-gray-400 italic">{topics}</h2>
Expand Down
3 changes: 1 addition & 2 deletions app/containers/MessagesDisplay.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ const MessagesDisplay: React.FC<MessagesDisplayProps> = ({
const shouldRenderList = screenSize >= SCREEN_SIZES.md || !showMenu;

const handleOptionSelected = (option: string) => {
// if the screen is small, hide the menu when an option is selected
if (screenSize < SCREEN_SIZES.md) {
setShowMenu(false);
}
Expand All @@ -75,7 +74,7 @@ const MessagesDisplay: React.FC<MessagesDisplayProps> = ({
{shouldRenderList && (
<div className={listClassName}>
<div className="flex items-center justify-between">
{title && <h1 className="text-xl font-bold mb-0 mr-4">{title}</h1>}
{title && <h1 className="text-xl font-bold mr-4">{title}</h1>}
{shouldRenderAcknowledgementButton && (
<button
className="px-4 py-2 rounded-md font-medium bg-blue-500 text-white hover:bg-gray-200 hover:text-gray-800"
Expand Down

0 comments on commit 36cfef7

Please sign in to comment.