Skip to content

Commit 33cfd24

Browse files
fix outline being cut off four stream tags
1 parent c370089 commit 33cfd24

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

src/components/streamFeed/StreamChannel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ const StreamChannel: FC<StreamChannelProps> = ({ testid, user_name }) => {
8282

8383
return (
8484
<button
85-
className="text-slate-300 text-left max-w-full text-ellipsis whitespace-nowrap overflow-hidden font-medium text-base lg:text-lg rounded-md pr-1 pseudo-zinc-purple streamfeed streamchannel"
85+
className="text-slate-300 text-left max-w-full text-ellipsis whitespace-nowrap overflow-hidden
86+
font-medium text-base lg:text-lg rounded-md px-1 pseudo-zinc-purple streamfeed streamchannel"
8687
onClick={handleClick}
8788
title={user_name}
8889
data-testid={testid}

src/components/streamFeed/StreamFeed.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,10 @@ const StreamFeed = () => {
370370
data-testid={`streamfeed-article-${index}`}
371371
>
372372
<div className={`rounded-xl ${bgColor}`}>
373-
<section className="relative transform transition duration-150 ease-in-out hover:translate-x-2 hover:-translate-y-2">
373+
<section
374+
className="relative transform transition duration-150 ease-in-out
375+
hover:translate-x-2 hover:-translate-y-2"
376+
>
374377
<StreamThumbnail
375378
thumbnail_url={
376379
item.thumbnail_url
@@ -416,7 +419,7 @@ const StreamFeed = () => {
416419
key={`${item.user_id} - game`}
417420
testid={`streamfeed-game-${index}`}
418421
/>
419-
<div className="flex flex-wrap w-full max-h-20 overflow-auto">
422+
<div className="flex flex-wrap w-full max-h-20 overflow-auto pl-2 -ml-2">
420423
{item.tags.map((tag, index) => (
421424
<StreamTags
422425
item={tag}

src/components/streamFeed/StreamGame.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ const StreamGame: FC<StreamGameProps> = ({ game_name, testid }) => {
8181
}
8282
return (
8383
<button
84-
className="text-slate-300 text-left max-w-full text-ellipsis whitespace-nowrap overflow-hidden text-sm lg:text-base rounded-md pr-1 pseudo-zinc-purple streamfeed streamgame"
84+
className="text-slate-300 text-left max-w-full text-ellipsis whitespace-nowrap overflow-hidden
85+
text-sm lg:text-base rounded-md px-1 pseudo-zinc-purple streamfeed streamgame"
8586
onClick={handleClick}
8687
title={game_name}
8788
data-testid={testid}

src/components/streamFeed/StreamTags.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ const StreamTags: FC<StreamTagsProps> = ({ item, testid }) => {
8282

8383
return (
8484
<button
85-
className="bg-gray-600 text-slate-50 text-left max-w-full text-ellipsis whitespace-nowrap overflow-hidden px-2 rounded-md mr-1 my-1 text-sm lg:text-base pseudo-zinc-secondary streamfeed streamtag"
85+
className="bg-gray-600 text-slate-50 text-left max-w-full text-ellipsis whitespace-nowrap overflow-hidden
86+
px-2 rounded-md mr-2 my-1 text-sm lg:text-base pseudo-zinc-secondary streamfeed streamtag"
8687
onClick={handleClick}
8788
title={item}
8889
data-testid={testid}

0 commit comments

Comments
 (0)