Handle overflow when long name in suggestion

This commit is contained in:
Kalle
2022-06-04 11:49:39 +03:00
parent 759aed9518
commit 9e90784f2a
2 changed files with 2 additions and 3 deletions

View File

@@ -233,8 +233,7 @@ function SuggestedUser({
discordId={suggested.suggestedUser.discordId}
size="md"
/>
{/* xxx: can cause page to overflow when long e.g. Buckinghamshire */}
<h2>{suggested.suggestedUser.discordName}</h2>
<h2>Buckinghamshire</h2>
{canAddCommentToSuggestionFE({
user,
suggestions: data.suggestions,
@@ -312,7 +311,6 @@ function CommentDeleteButton({
// TODO: Delete your suggestion of suggestedDiscordName and 3 comments to it? + different behavior of the delete event
dialogHeading={`Delete your comment to ${suggestedDiscordName}'s +${tier} suggestion?`}
>
{/* xxx: what when this is the first suggestion... it would trigger different behavior so confusing maybe? */}
<Button
className="plus__delete-button"
icon={<TrashIcon />}

View File

@@ -46,6 +46,7 @@
display: flex;
align-items: center;
gap: var(--s-2);
overflow-x: auto;
}
.plus__comment-button {