Skip to content

Commit

Permalink
Refactor NotificationList position classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Liendo committed Nov 13, 2023
1 parent dc9b653 commit 0dfe271
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/components/NotificationList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
export function getPositionClasses(position: Position = Position.TopRight) {
switch (position) {
case Position.TopRight:
return 'top-6 right-6';
return 'position-top-right';
case Position.TopLeft:
return 'top-6 left-6';
return 'position-top-left';
case Position.BottomRight:
return 'bottom-6 right-6';
return 'position-bottom-right';
case Position.BottomLeft:
return 'bottom-6 left-6';
return 'position-bottom-left';
default:
return 'top-6 right-6';
return 'position-top-right';
}
}
</script>
Expand Down

0 comments on commit 0dfe271

Please sign in to comment.