Fixes custom input overflow (#920)

* Fixes custom input overflow

* Truncates also placeholder

* Adds title attributes in booking notes and event descriptions
This commit is contained in:
Omar López authored and GitHub committed 2021-10-12 18:59:52 +00:00
1 parent 64a01d33ba
commit 4b05c56a0d
4 files changed
+17 -10

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ function BookingListItem(booking: BookingItem) {
},
{
async onSettled() {
await utils.invalidateQuery(["viewer.bookings"]);
await utils.invalidateQueries(["viewer.bookings"]);
},
}
);
@@ -101,7 +101,7 @@ function BookingListItem(booking: BookingItem) {
{booking.title}
</div>
{booking.description && (
<div className="text-sm text-neutral-600 truncate max-w-60 md:max-w-96">
<div className="text-sm text-neutral-600 truncate max-w-60 md:max-w-96" title={booking.description}>
&quot;{booking.description}&quot;
</div>
)}
+3 -1
View File
@@ -47,7 +47,9 @@ const EventTypeList = ({ readOnly, types, profile }: Props): JSX.Element => {
)}>
<div className="flex items-center justify-between w-full px-4 py-4 sm:px-6 hover:bg-neutral-50">
<Link href={"/event-types/" + type.id}>
<a className="flex-grow text-sm truncate">
<a
className="flex-grow text-sm truncate"
title={`${type.title} ${type.description ? `– ${type.description}` : ""}`}>
<div>
<span className="font-medium truncate text-neutral-900">{type.title}</span>
{type.hidden && (