bunch of touchups for the sizing and all

This commit is contained in:
talksik
2022-01-19 03:21:08 -08:00
parent b15fca6059
commit b04df2528f
5 changed files with 48 additions and 43 deletions
+39 -36
View File
@@ -145,12 +145,13 @@ export default function Links() {
<span className="flex flex-col mr-20">
<span className="text-white mr-auto">
LINKS
{/* <button
<button
onClick={() => handleModalType(ShowModalType.createLink)}
className="right-1 rounded-lg py-1 px-2 ml-1
shadow-md text-center text-white text-sm font-bold"
>
CTRL + V
</button> */}
</button>
</span>
<span className="text-gray-300 text-xs">
@@ -158,8 +159,42 @@ export default function Links() {
</span>
</span>
<div className="ml-auto">
<Radio.Group
value={selectedTabPane}
onChange={(e) => setSelectedTabPane(e.target.value)}
>
<Radio.Button value={LinkTypeFilter.me}>
{LinkTypeFilter.me}{" "}
<span className="text-xs text-orange-500">
{meLinks.length > 0 ? meLinks.length : ""}
</span>
</Radio.Button>
<Radio.Button value={LinkTypeFilter.team}>
{LinkTypeFilter.team}{" "}
<span className="text-xs text-orange-500">
{teamLinks.length}
</span>
</Radio.Button>
<Tooltip title={"coming soon"}>
<Radio.Button disabled value={LinkTypeFilter.favorites}>
{LinkTypeFilter.favorites}{" "}
{/* <span className="text-xs text-orange-500">
{liveRooms.length > 0 ? fa.length : ""}
</span> */}
</Radio.Button>
</Tooltip>
<Radio.Button value={LinkTypeFilter.archived}>
{LinkTypeFilter.archived}{" "}
<span className="text-xs text-orange-500">
{archivedLinks.length > 0 ? archivedLinks.length : ""}
</span>
</Radio.Button>
</Radio.Group>
</div>
<Dropdown overlay={TimePeriodFilterMenu}>
<span className="text-sm text-gray-300 flex flex-row items-center uppercase hover:cursor-pointer">
<span className="ml-2 text-sm text-gray-300 flex flex-row items-center uppercase hover:cursor-pointer">
Week <FaAngleDown />
</span>
</Dropdown>
@@ -186,40 +221,8 @@ export default function Links() {
</span>
</Tooltip>
<div className="mb-5">
<Radio.Group
value={selectedTabPane}
onChange={(e) => setSelectedTabPane(e.target.value)}
>
<Radio.Button value={LinkTypeFilter.me}>
{LinkTypeFilter.me}{" "}
<span className="text-xs text-orange-500">
{meLinks.length > 0 ? meLinks.length : ""}
</span>
</Radio.Button>
<Radio.Button value={LinkTypeFilter.team}>
{LinkTypeFilter.team}{" "}
<span className="text-xs text-orange-500">{teamLinks.length}</span>
</Radio.Button>
<Tooltip title={"coming soon"}>
<Radio.Button disabled value={LinkTypeFilter.favorites}>
{LinkTypeFilter.favorites}{" "}
{/* <span className="text-xs text-orange-500">
{liveRooms.length > 0 ? fa.length : ""}
</span> */}
</Radio.Button>
</Tooltip>
<Radio.Button value={LinkTypeFilter.archived}>
{LinkTypeFilter.archived}{" "}
<span className="text-xs text-orange-500">
{archivedLinks.length > 0 ? archivedLinks.length : ""}
</span>
</Radio.Button>
</Radio.Group>
</div>
{/* table of links */}
<div className="flex flex-col space-y-2">
<div className="flex flex-row space-x-2 overflow-x-scroll py-2">
{getFilteredContent().map((link) => (
<LinkCard key={link.id} link={link} />
))}
+1 -1
View File
@@ -154,7 +154,7 @@ export default function DashboardRoom() {
}
return (
<section className="p-5 flex-1 flex flex-col bg-gray-100 bg-opacity-25 rounded-lg shadow-md">
<section className="p-5 flex-1 flex flex-col bg-gray-100 bg-opacity-25 rounded-lg shadow-md flex-shrink-0">
{/* modal for creating room */}
<CreateOrUpdateRoom
show={showModalType == ShowModalType.createRoom}
+4 -4
View File
@@ -121,17 +121,17 @@ export default function LinkCard(props: ILinkCardProps) {
console.log(receiversNames);
return (
<span className="flex flex-col rounded-lg ">
<span className="flex flex-col rounded-lg w-72 max-h-60 overflow-clip shrink-0">
{/* attmnt header */}
<Tooltip title={props.link.link}>
<span
onClick={() => 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"
>
<LinkIcon className="text-4xl mr-2" linkType={props.link.type} />
<span className="flex flex-col items-baseline mr-10 space-y-1">
<span className="text-md font-bold text-white">
<span className="text-md font-bold text-white text-ellipsis overflow-hidden">
{props.link.name}
</span>
@@ -175,7 +175,7 @@ export default function LinkCard(props: ILinkCardProps) {
);
})
) : (
<span className="text-xs my-3 text-white bg-emerald-400 p-1 rounded-md font-bold flex flex-row space-x-2 items-center">
<span className="text-xs text-white bg-emerald-400 p-1 rounded-md font-bold flex flex-row space-x-2 items-center">
<span>team</span>
</span>
)}
+3 -2
View File
@@ -87,15 +87,16 @@ function TeamDashboard() {
<div className="flex flex-row items-baseline space-x-5 space-y-5">
<div className="flex flex-col max-w-sm space-y-5">
<TeamVoiceLine />
<Links />
</div>
<div className="flex flex-col space-y-5">
<div className="flex flex-col space-y-5 flex-1">
<Announcements />
<Rooms />
</div>
</div>
<Links />
</div>
);
}
+1
View File
@@ -117,6 +117,7 @@ p {
/* scrollbar customization */
::-webkit-scrollbar {
height: 5px;
width: 5px;
}