some more cleanup

This commit is contained in:
barnabasmolnar 2023-08-09 00:07:57 +02:00
parent 8062bd1027
commit d7b7a6715e
5 changed files with 7 additions and 13 deletions

View File

@ -23,7 +23,6 @@
height: var(--lg-icon-size); height: var(--lg-icon-size);
} }
// TODO follow-participant
&__label-element { &__label-element {
align-self: flex-start; align-self: flex-start;
} }

View File

@ -19,7 +19,6 @@ export const SidebarTrigger = ({
const appState = useUIAppState(); const appState = useUIAppState();
return ( return (
// TODO follow-participant
<label title={title} className="sidebar-trigger__label-element"> <label title={title} className="sidebar-trigger__label-element">
<input <input
className="ToolIcon_type_checkbox" className="ToolIcon_type_checkbox"

View File

@ -16,18 +16,17 @@
display: none; display: none;
} }
// can fit max 5 avatars in a column box-sizing: border-box;
max-height: 140px;
// can fit max 10 avatars in a row when there's enough space // can fit max 4 avatars (3 avatars + show more) in a column
max-width: 290px; max-height: 120px;
// can fit max 4 avatars (3 avatars + show more) when there's enough space
max-width: 120px;
// Tweak in 30px increments to fit more/fewer avatars in a row/column ^^ // Tweak in 30px increments to fit more/fewer avatars in a row/column ^^
// TODO follow-participant overflow: hidden;
// rethink the above given that we'll have 3 avatars + "more" button max
// most likely
// overflow: hidden;
} }
.UserList > * { .UserList > * {

View File

@ -833,7 +833,6 @@ class Collab extends PureComponent<Props, CollabState> {
this.portal.socket && this.portal.socket &&
this.portal.broadcastScrollAndZoom( this.portal.broadcastScrollAndZoom(
{ bounds: [x1, y1, x2, y2] }, { bounds: [x1, y1, x2, y2] },
// TODO follow-participant
`follow_${this.portal.socket.id}`, `follow_${this.portal.socket.id}`,
); );
} }

View File

@ -83,7 +83,6 @@ class Portal {
async _broadcastSocketData( async _broadcastSocketData(
data: SocketUpdateData, data: SocketUpdateData,
volatile: boolean = false, volatile: boolean = false,
// TODO follow-participant
roomId?: string, roomId?: string,
) { ) {
if (this.isOpen()) { if (this.isOpen()) {
@ -93,7 +92,6 @@ class Portal {
this.socket?.emit( this.socket?.emit(
volatile ? WS_EVENTS.SERVER_VOLATILE : WS_EVENTS.SERVER, volatile ? WS_EVENTS.SERVER_VOLATILE : WS_EVENTS.SERVER,
// TODO follow-participant
roomId ?? this.roomId, roomId ?? this.roomId,
encryptedBuffer, encryptedBuffer,
iv, iv,