Skip to content
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
9 changes: 7 additions & 2 deletions packages/modules.calls/src/styles/grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,17 @@
overflow: hidden;
border-radius: 16px;
background: var(--xi-bg-gray-0);
border: 2px solid transparent;
}

.compact-call-container .lk-participant-tile {
border: 2px solid var(--xi-gray-20);
}

/* Индикаторы состояния для адаптивной сетки */
.lk-participant-tile[data-lk-speaking='true']:not([data-lk-source='screen_share']) {
transition: box-shadow 0.3s ease;
box-shadow: 0 0 0 2px var(--xi-green-60);
transition: border 0.4s cubic-bezier(0.4, 0, 0.2, 1);
border: 2px solid var(--xi-green-60);
}

.lk-participant-tile .lk-focus-toggle-button {
Expand Down
4 changes: 2 additions & 2 deletions packages/modules.calls/src/ui/CompactView/CompactCall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ export const CompactCall = ({ saveUserChoices = true }) => {
};

return (
<div ref={setNodeRef} style={style} className="flex w-[320px] flex-col">
<div ref={setNodeRef} style={style} className="compact-call-container flex w-[320px] flex-col">
{/* Ручка перетаскивания — только эта область запускает dnd, кнопки не срабатывают при отпускании */}
<div
{...attributes}
{...listeners}
className="bg-gray-0 border-gray-20 group relative mb-2 flex h-[180px] w-[320px] cursor-move items-center justify-center overflow-hidden rounded-2xl border shadow-lg"
className="group relative mb-2 flex h-[180px] w-[320px] cursor-move items-center justify-center overflow-hidden rounded-2xl shadow-lg"
>
{currentParticipant ? (
<ParticipantTile
Expand Down
6 changes: 3 additions & 3 deletions packages/modules.calls/src/ui/Participant/ParticipantTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const ParticipantTile = ({
>
<TrackRefContextIfNeeded trackRef={trackReference}>
<ParticipantContextIfNeeded participant={trackReference.participant}>
<div className="m-auto flex aspect-video h-full w-full justify-center overflow-hidden rounded-2xl in-[.lk-grid-layout]:relative in-[.lk-grid-layout]:overflow-hidden in-[.lk-grid-layout]:rounded-2xl [.lk-grid-layout_&]:m-0 [.lk-grid-layout_&]:flex-none [.lk-grid-layout_&]:bg-black">
<div className="m-auto flex aspect-video h-full w-full justify-center overflow-hidden rounded-xl in-[.lk-grid-layout]:relative in-[.lk-grid-layout]:overflow-hidden in-[.lk-grid-layout]:rounded-2xl [.lk-grid-layout_&]:m-0 [.lk-grid-layout_&]:flex-none [.lk-grid-layout_&]:bg-black">
{children ?? (
<div className="relative flex h-full w-full justify-center in-[.lk-grid-layout]:relative in-[.lk-grid-layout]:h-full in-[.lk-grid-layout]:w-full">
{/* Аватар только когда камера выключена; для демонстрации экрана — только нейтральный фон */}
Expand Down Expand Up @@ -238,10 +238,10 @@ export const ParticipantTile = ({
!trackReference.publication?.track?.isMuted &&
(() => {
const videoBlock = (
<div className="absolute inset-0 aspect-video h-full w-full rounded-2xl bg-gray-100/80">
<div className="absolute inset-0 aspect-video h-full w-full bg-gray-100/80">
<VideoTrack
className={cn(
`absolute inset-0 h-full w-full rounded-2xl object-cover object-center ${getVideoClassName()}`,
`absolute inset-0 h-full w-full object-cover object-center ${getVideoClassName()}`,
)}
style={{
...(trackReference.source === Track.Source.Camera && {
Expand Down
Loading
Loading