Skip to content

Commit

Permalink
Some minor changes to the styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoberts committed Oct 1, 2024
1 parent 1170166 commit efd4915
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions public/assets/styles/utility/text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ pre:last-child {
font-weight: get("font.weight.medium");
}

.text-subtitle {
font-size: get("font.size.base");
font-weight: get("font.weight.medium");
}

.text-body {
font-size: get("font.size.base");
}
Expand Down
6 changes: 3 additions & 3 deletions public/components/NotificationIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const NotificationItem = ({ notification }: { notification: Notification
}

return (
<HStack spacing={4} className="px-3 clickable hover py-2" onClick={openNotification}>
<HStack spacing={4} className="px-3 pr-5 clickable hover py-2" onClick={openNotification}>
<Avatar user={{ name: notification.authorName, avatarURL: notification.avatarURL }} />
<div>
<Markdown className="c-notification-indicator-text" text={notification.title} style="full" />
Expand Down Expand Up @@ -88,7 +88,7 @@ export const NotificationIndicator = () => {
<>
{unread !== undefined && unread?.length > 0 ? (
<>
<p className="text-title px-4 mt-2">Unread notifications</p>
<p className="text-subtitle px-4 mt-2 mb-0">Unread notifications</p>
<VStack spacing={2} className="py-3 mb-2 no-lastchild-paddingzero" divide={true}>
{unread.map((n) => (
<NotificationItem key={n.id} notification={n} />
Expand All @@ -100,7 +100,7 @@ export const NotificationIndicator = () => {
)}
{recent !== undefined && recent?.length > 0 && (
<>
<p className="text-title px-4">Previous notifications</p>
<p className="text-subtitle px-4 mb-0">Previous notifications</p>
<VStack spacing={2} className="py-2 no-lastchild-paddingzero" divide={true}>
{recent.map((n) => (
<NotificationItem key={n.id} notification={n} />
Expand Down

0 comments on commit efd4915

Please sign in to comment.