Skip to content

Commit 05bf16b

Browse files
committed
added spaces between texts again
1 parent 30138bb commit 05bf16b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

client/src/components/TextChat.jsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function MessageComp({ attribute, showNickname, showTitle }) {
133133

134134
if (msg.sender.id === player.id) {
135135
return (
136-
<div className="flex justify-end my-2">
136+
<div className="flex justify-end my-2 mb-8">
137137
<div className="relative flex flex-col items-end max-w-[50%]">
138138
<span className="absolute -top-5 right-0 text-xs text-gray-400">
139139
{ts && relTime(ts)}
@@ -149,17 +149,16 @@ function MessageComp({ attribute, showNickname, showTitle }) {
149149
😐
150150
</button>
151151
</div>
152-
<div className="h-4" />
153152
</div>
154153
);
155154
}
156155

157156
return (
158-
<div className="flex justify-start my-2">
157+
<div className="flex justify-start my-2 mb-8">
159158
<div className="relative flex flex-col items-start max-w-[50%]">
160159
<span className="absolute -top-5 left-0 flex items-center gap-1 text-xs">
161160
{showNickname && (
162-
<span className="font-bold text-gray-700">
161+
<span className="font-bold text-gray-700" style="margin-right: 10px;">
163162
{msg.sender.name}
164163
</span>
165164
)}
@@ -180,7 +179,6 @@ function MessageComp({ attribute, showNickname, showTitle }) {
180179
😐
181180
</button>
182181
</div>
183-
<div className="h-4" />
184182
</div>
185183
);
186184
}

0 commit comments

Comments
 (0)