Fix/email responsive bug (#6901)

* fix: prevent overflow of url

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>

* fix: manage link responsive in emails

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>

---------

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
This commit is contained in:
Udit Takkar authored and GitHub committed 2023-02-18 22:26:55 +00:00
1 parent d7b4d5932d
commit 8e3fa4be29
1 file changed
+21 -9
+21 -9
View File
@@ -23,25 +23,37 @@ export function ManageLink(props: { calEvent: CalendarEvent; attendee: Person })
style={{
fontWeight: 400,
lineHeight: "24px",
display: "flex",
justifyContent: "center",
textAlign: "center",
width: "100%",
gap: "8px",
}}>
<>{t("need_to_make_a_change")}</>
{!props.calEvent.recurringEvent && (
<>
<span>
<a
href={getRescheduleLink(props.calEvent)}
style={{ color: "#374151", marginLeft: "5px", marginRight: "5px" }}>
style={{
color: "#374151",
marginLeft: "5px",
marginRight: "5px",
textDecoration: "underline",
}}>
<>{t("reschedule")}</>
</a>
<>{t("or_lowercase")}</>
</>
</span>
)}
<a href={getCancelLink(props.calEvent)} style={{ color: "#374151", marginLeft: "5px" }}>
<>{t("cancel")}</>
</a>
<span>
<a
href={getCancelLink(props.calEvent)}
style={{
color: "#374151",
marginLeft: "5px",
textDecoration: "underline",
}}>
<>{t("cancel")}</>
</a>
</span>
</p>
</div>
);