max h for the voice line
This commit is contained in:
@@ -124,12 +124,6 @@ export default function TeamVoiceLine() {
|
|||||||
<span className="text-xs text-black font-bold">
|
<span className="text-xs text-black font-bold">
|
||||||
{tmember.nickName}
|
{tmember.nickName}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{isMessageIncoming ? (
|
|
||||||
<FaArrowCircleDown className="text-orange-500" />
|
|
||||||
) : (
|
|
||||||
""
|
|
||||||
)}
|
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span className={"text-xs span-sans text-gray-500"}>
|
<span className={"text-xs span-sans text-gray-500"}>
|
||||||
@@ -143,12 +137,6 @@ export default function TeamVoiceLine() {
|
|||||||
{tmember.nickName}
|
{tmember.nickName}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{isMessageIncoming ? (
|
|
||||||
<FaArrowCircleDown className="text-orange-500" />
|
|
||||||
) : (
|
|
||||||
""
|
|
||||||
)}
|
|
||||||
|
|
||||||
<span className="text-white shadow-xl font-bold px-3 py-1 rounded">
|
<span className="text-white shadow-xl font-bold px-3 py-1 rounded">
|
||||||
{/* keyboard shortcuts start from 1 */}
|
{/* keyboard shortcuts start from 1 */}
|
||||||
{i + 1}
|
{i + 1}
|
||||||
@@ -187,7 +175,15 @@ export default function TeamVoiceLine() {
|
|||||||
<BsThreeDots className="text-black ml-2 hover:cursor-pointer" />
|
<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>
|
</span>
|
||||||
);
|
);
|
||||||
@@ -208,7 +204,7 @@ export default function TeamVoiceLine() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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-row justify-start items-center pb-5">
|
||||||
<span className="flex flex-col">
|
<span className="flex flex-col">
|
||||||
<span className="text-white">TEAM</span>
|
<span className="text-white">TEAM</span>
|
||||||
@@ -236,7 +232,9 @@ export default function TeamVoiceLine() {
|
|||||||
<PowerPlayer show={showPowerPlayer} handleCloseModal={handleCloseModal} />
|
<PowerPlayer show={showPowerPlayer} handleCloseModal={handleCloseModal} />
|
||||||
|
|
||||||
{/* list of team members */}
|
{/* list of team members */}
|
||||||
{renderTeamMemberList()}
|
<div className=" overflow-auto flex flex-col">
|
||||||
|
{renderTeamMemberList()}
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,19 +31,17 @@ export function UserPulse(props: UserStatusPropsInterface) {
|
|||||||
switch (props.status) {
|
switch (props.status) {
|
||||||
case UserStatus.online:
|
case UserStatus.online:
|
||||||
return (
|
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:
|
case UserStatus.busy:
|
||||||
return (
|
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:
|
case UserStatus.offline:
|
||||||
return (
|
return <IoRemoveOutline className="text-gray-400 text-2xl mx-2" />;
|
||||||
<IoRemoveOutline className="text-gray-400 text-2xl mx-2 ml-auto" />
|
|
||||||
);
|
|
||||||
default:
|
default:
|
||||||
return (
|
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
@@ -118,11 +118,12 @@ p {
|
|||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
height: 5px;
|
height: 5px;
|
||||||
width: 5px;
|
width: 5px;
|
||||||
|
@apply rounded;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Track */
|
/* Track */
|
||||||
::-webkit-scrollbar-track {
|
::-webkit-scrollbar-track {
|
||||||
background: #f1f1f1;
|
@apply bg-gray-400 rounded;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handle */
|
/* Handle */
|
||||||
|
|||||||
Reference in New Issue
Block a user