max h for the voice line

This commit is contained in:
Arjun Patel
2022-01-22 12:31:29 -08:00
parent 2562afbd0e
commit 45dbb7c170
3 changed files with 19 additions and 22 deletions
+13 -15
View File
@@ -124,12 +124,6 @@ export default function TeamVoiceLine() {
<span className="text-xs text-black font-bold">
{tmember.nickName}
</span>
{isMessageIncoming ? (
<FaArrowCircleDown className="text-orange-500" />
) : (
""
)}
</span>
<span className={"text-xs span-sans text-gray-500"}>
@@ -143,12 +137,6 @@ export default function TeamVoiceLine() {
{tmember.nickName}
</span>
{isMessageIncoming ? (
<FaArrowCircleDown className="text-orange-500" />
) : (
""
)}
<span className="text-white shadow-xl font-bold px-3 py-1 rounded">
{/* keyboard shortcuts start from 1 */}
{i + 1}
@@ -187,7 +175,15 @@ export default function TeamVoiceLine() {
<BsThreeDots className="text-black ml-2 hover:cursor-pointer" />
</>
) : (
<UserPulse status={tmember.userStatus} />
<span className="flex flex-row items-center ml-auto ">
{isMessageIncoming ? (
<FaArrowCircleDown className="text-orange-500" />
) : (
""
)}
<UserPulse status={tmember.userStatus} />
</span>
)}
</span>
);
@@ -208,7 +204,7 @@ export default function TeamVoiceLine() {
}
return (
<section className="p-5 flex flex-col bg-gray-100 bg-opacity-25 rounded-lg shadow-md w-96 shrink-0">
<section className="p-5 flex flex-col bg-gray-100 bg-opacity-25 rounded-lg shadow-md w-96 shrink-0 max-h-[32rem]">
<span className="flex flex-row justify-start items-center pb-5">
<span className="flex flex-col">
<span className="text-white">TEAM</span>
@@ -236,7 +232,9 @@ export default function TeamVoiceLine() {
<PowerPlayer show={showPowerPlayer} handleCloseModal={handleCloseModal} />
{/* list of team members */}
{renderTeamMemberList()}
<div className=" overflow-auto flex flex-col">
{renderTeamMemberList()}
</div>
</section>
);
}
+4 -6
View File
@@ -31,19 +31,17 @@ export function UserPulse(props: UserStatusPropsInterface) {
switch (props.status) {
case UserStatus.online:
return (
<IoPulseOutline className="text-green-500 text-2xl animate-pulse mx-2 ml-auto" />
<IoPulseOutline className="text-green-500 text-2xl animate-pulse mx-2" />
);
case UserStatus.busy:
return (
<IoPulseOutline className="text-orange-400 text-2xl animate-pulse mx-2 ml-auto" />
<IoPulseOutline className="text-orange-400 text-2xl animate-pulse mx-2" />
);
case UserStatus.offline:
return (
<IoRemoveOutline className="text-gray-400 text-2xl mx-2 ml-auto" />
);
return <IoRemoveOutline className="text-gray-400 text-2xl mx-2" />;
default:
return (
<IoPulseOutline className="text-gray-400 text-2xl animate-pulse mx-2 ml-auto" />
<IoPulseOutline className="text-gray-400 text-2xl animate-pulse mx-2" />
);
}
}
+2 -1
View File
@@ -118,11 +118,12 @@ p {
::-webkit-scrollbar {
height: 5px;
width: 5px;
@apply rounded;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
@apply bg-gray-400 rounded;
}
/* Handle */