Skip to content

Commit f52f136

Browse files
committed
Fix text wrap on long server names in search bar
1 parent f30dab0 commit f52f136

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

resources/scripts/components/dashboard/search/SearchModal.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default ({ ...props }: Props) => {
105105
to={`/server/${server.id}`}
106106
onClick={() => props.onDismissed()}
107107
>
108-
<div>
108+
<div css={tw`flex-1 mr-4`}>
109109
<p css={tw`text-sm`}>{server.name}</p>
110110
<p css={tw`mt-1 text-xs text-neutral-400`}>
111111
{
@@ -115,10 +115,10 @@ export default ({ ...props }: Props) => {
115115
}
116116
</p>
117117
</div>
118-
<div css={tw`flex-1 text-right`}>
119-
<span css={tw`text-xs py-1 px-2 bg-cyan-800 text-cyan-100 rounded`}>
120-
{server.node}
121-
</span>
118+
<div css={tw`flex-none text-right`}>
119+
<span css={tw`text-xs py-1 px-2 bg-cyan-800 text-cyan-100 rounded`}>
120+
{server.node}
121+
</span>
122122
</div>
123123
</ServerResult>
124124
))

0 commit comments

Comments
 (0)