Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Fix flex wrap #85

Merged
merged 2 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/containers/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const Dashboard = () => {
</div>
) : (
<div className="flex flex-col justify-start p-1 gap-1">
<div className="tabs tabs-boxed tabs-bordered tabs-lg gap-2 mt-5 flex" role="tablist">
<div className="tabs tabs-boxed tabs-bordered tabs-lg gap-2 mt-5 flex flex-wrap" role="tablist">
{Object.values(jellyfishServers).map((server) => (
<button
role="tab"
Expand Down
4 changes: 2 additions & 2 deletions src/containers/JellyfishInstance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ export const JellyfishInstance = ({
</div>
</div>
<CreateRoom refetchIfNeeded={refetchRoomsIfNeeded} host={host} key={host} />
<div className="tabs tabs-bordered tabs-lg gap-2 tabs-boxed flex p-0 items-stretch" role="tablist">
<div className="tabs tabs-bordered tabs-lg gap-2 tabs-boxed flex flex-wrap p-0 items-stretch" role="tablist">
{state.rooms === null && <div>...</div>}
{Object.values(state.rooms || {})
.sort(roomStateComparator)
.map((room) => (
<button
key={room.id}
className={clsx(
"indicator h-full bg-gray-50 text-gray-500 hover:text-black tab",
"indicator bg-gray-50 text-gray-500 hover:text-black tab",
state.selectedRoom === room.id && "tab-active",
)}
role="tab"
Expand Down
Loading