From b04df2528f561440450a5e28eb4fbccdece0b7ba Mon Sep 17 00:00:00 2001 From: talksik Date: Wed, 19 Jan 2022 03:21:08 -0800 Subject: [PATCH] bunch of touchups for the sizing and all --- components/Dashboard/Links.tsx | 75 ++++++++++++++++++---------------- components/Dashboard/Rooms.tsx | 2 +- components/LinkCard.tsx | 8 ++-- pages/teams/[teamid].tsx | 5 ++- styles/globals.css | 1 + 5 files changed, 48 insertions(+), 43 deletions(-) diff --git a/components/Dashboard/Links.tsx b/components/Dashboard/Links.tsx index 6e21e43..0edb38e 100644 --- a/components/Dashboard/Links.tsx +++ b/components/Dashboard/Links.tsx @@ -145,12 +145,13 @@ export default function Links() { LINKS - {/* */} + @@ -158,8 +159,42 @@ export default function Links() { +
+ setSelectedTabPane(e.target.value)} + > + + {LinkTypeFilter.me}{" "} + + {meLinks.length > 0 ? meLinks.length : ""} + + + + {LinkTypeFilter.team}{" "} + + {teamLinks.length} + + + + + {LinkTypeFilter.favorites}{" "} + {/* + {liveRooms.length > 0 ? fa.length : ""} + */} + + + + {LinkTypeFilter.archived}{" "} + + {archivedLinks.length > 0 ? archivedLinks.length : ""} + + + +
+ - + Week @@ -186,40 +221,8 @@ export default function Links() { -
- setSelectedTabPane(e.target.value)} - > - - {LinkTypeFilter.me}{" "} - - {meLinks.length > 0 ? meLinks.length : ""} - - - - {LinkTypeFilter.team}{" "} - {teamLinks.length} - - - - {LinkTypeFilter.favorites}{" "} - {/* - {liveRooms.length > 0 ? fa.length : ""} - */} - - - - {LinkTypeFilter.archived}{" "} - - {archivedLinks.length > 0 ? archivedLinks.length : ""} - - - -
- {/* table of links */} -
+
{getFilteredContent().map((link) => ( ))} diff --git a/components/Dashboard/Rooms.tsx b/components/Dashboard/Rooms.tsx index 0afe572..c2a5821 100644 --- a/components/Dashboard/Rooms.tsx +++ b/components/Dashboard/Rooms.tsx @@ -154,7 +154,7 @@ export default function DashboardRoom() { } return ( -
+
{/* modal for creating room */} + {/* attmnt header */} window.open(props.link.link, "_blank")} - className="flex flex-row bg-gray-300 bg-opacity-25 py-5 px-3 items-center justify-start hover:cursor-pointer" + className="flex flex-row bg-gray-300 bg-opacity-25 py-5 px-3 items-center justify-start hover:cursor-pointer h-full" > - + {props.link.name} @@ -175,7 +175,7 @@ export default function LinkCard(props: ILinkCardProps) { ); }) ) : ( - + team )} diff --git a/pages/teams/[teamid].tsx b/pages/teams/[teamid].tsx index 76e0979..96dcd62 100644 --- a/pages/teams/[teamid].tsx +++ b/pages/teams/[teamid].tsx @@ -87,15 +87,16 @@ function TeamDashboard() {
-
-
+
+ +
); } diff --git a/styles/globals.css b/styles/globals.css index 8e31149..16de2cf 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -117,6 +117,7 @@ p { /* scrollbar customization */ ::-webkit-scrollbar { + height: 5px; width: 5px; }