Skip to content

Commit

Permalink
fix(ui): update toast layout for proper alignment
Browse files Browse the repository at this point in the history
RISDEV-4777
  • Loading branch information
hamo225 committed Sep 8, 2024
1 parent f3f274e commit 52b3078
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/primevue/toast/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { tw } from "@/lib/tags.ts";

const toast: ToastPassThroughOptions = {
message: ({ props }) => {
const base = tw`flex flex-row items-center gap-8 border-l-8 p-16`;
const base = tw`flex flex-row items-center gap-8 border-l-8 p-16 w-full`;

const severity = props.message?.severity;

Expand All @@ -24,7 +24,7 @@ const toast: ToastPassThroughOptions = {
},

messageContent: () => ({
class: tw`flex flex-row items-start gap-8`,
class: tw`flex flex-row items-start gap-8 w-full justify-between`,
}),

messageIcon: ({ props }) => {
Expand All @@ -49,7 +49,7 @@ const toast: ToastPassThroughOptions = {
},

messageText: () => ({
class: tw`text-black`,
class: tw`text-black flex-grow`,
}),

summary: () => ({
Expand Down

0 comments on commit 52b3078

Please sign in to comment.