Skip to content

Commit

Permalink
Add port mapping for Docker container and fix styling issue in RoomCa…
Browse files Browse the repository at this point in the history
…rd component
  • Loading branch information
etienne committed Feb 23, 2024
1 parent 794b92c commit a4c0517
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ services:
- MONGODB_USER_PASSWORD=${MONGODB_USER_PASSWORD}
- BROWSER=none
- NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL}
ports:
- 3000:3000

networks:
web:
4 changes: 2 additions & 2 deletions frontend/src/components/Room/RoomCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function RoomCard({ room, users }: { room: IRoom; users: string[] }) {
/>
)}
</div>
<div className="hidden sm:block">
<div className="sm:block">
<p className="font-medium line-clamp-1 text-gray-900 dark:text-gray-100">
{room.title}
</p>
Expand All @@ -83,7 +83,7 @@ function RoomCard({ room, users }: { room: IRoom; users: string[] }) {
</div>
{room.id !== "1" && (
<span
className="hidden absolute right-3 justify-center items-center p-2 bg-red-500 rounded-full group-hover:flex hover:bg-red-700"
className="absolute right-3 justify-center items-center p-2 bg-red-500 rounded-full group-hover:flex hover:bg-red-700"
onClick={() => {
handleQuitRoom();
}}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/contexts/SocketContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default function SocketProvider({
data.roomId !== "1" &&
data.systemMessage !== true
) {
// Remplacez 'http://localhost:5000' par l'URL de votre serveur
const response = await fetch(
process.env.NEXT_PUBLIC_BASE_URL + `rooms/${data.roomId}`
);
Expand Down

0 comments on commit a4c0517

Please sign in to comment.