mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-27 00:48:06 +08:00
1897210a60
* Initial support for Hand Raise feature Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Refactored to use reaction and redaction events Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Replacing button svg with raised hand emoji Signed-off-by: Milton Moura <miltonmoura@gmail.com> * SpotlightTile should not duplicate the raised hand Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Update src/room/useRaisedHands.tsx Element Call recently changed to AGPL-3.0 * Use relations to load existing reactions when joining the call Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Links to sha commit of matrix-js-sdk that exposes the call membership event id and refactors some async code Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Removing RaiseHand.svg * Check for reaction & redaction capabilities in widget mode Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Fix failing GridTile test Signed-off-by: Milton Moura <miltonmoura@gmail.com> * Center align hand raise. * Add support for displaying the duration of a raised hand. * Add a sound for when a hand is raised. * Refactor raised hand indicator and add tests. * lint * Refactor into own files. * Redact the right thing. * Tidy up useEffect * Lint tests * Remove extra layer * Add better sound. (woosh) * Add a small mode for spotlight * Fix timestamp calculation on relaod. * Fix call border resizing video * lint * Fix and update tests * Allow timer to be configurable. * Add preferences tab for choosing to enable timer. * Drop border from raised hand icon * Handle cases when a new member event happens. * Prevent infinite loop * Major refactor to support various state problems. * Tidy up and finish test rewrites * Add some explanation comments. * Even more comments. * Use proper duration formatter * Remove rerender * Fix redactions not working because they pick up events in transit. * More tidying * Use deferred value * linting * Add tests for cases where we got a reaction from someone else. * Be even less brittle. * Transpose border to GridTile. * lint --------- Signed-off-by: Milton Moura <miltonmoura@gmail.com> Co-authored-by: fkwp <fkwp@users.noreply.github.com> Co-authored-by: Half-Shot <will@half-shot.uk> Co-authored-by: Will Hunt <github@half-shot.uk>
141 lines
2.9 KiB
CSS
141 lines
2.9 KiB
CSS
/*
|
|
Copyright 2022-2024 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
Please see LICENSE in the repository root for full details.
|
|
*/
|
|
|
|
.modal {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.dialog {
|
|
box-sizing: border-box;
|
|
inline-size: 580px;
|
|
max-inline-size: 90%;
|
|
max-block-size: 600px;
|
|
}
|
|
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.dialog .content {
|
|
background: var(--cpd-color-bg-canvas-default);
|
|
}
|
|
|
|
.drawer .content {
|
|
overflow: auto;
|
|
}
|
|
|
|
.drawer {
|
|
background: var(--cpd-color-bg-canvas-default);
|
|
inset-block-end: 0;
|
|
inset-inline: max(0px, calc((100% - 520px) / 2));
|
|
max-block-size: 90%;
|
|
border-start-start-radius: var(--border-radius);
|
|
border-start-end-radius: var(--border-radius);
|
|
/* Drawer comes in the Android style by default */
|
|
--border-radius: 28px;
|
|
--handle-block-size: 4px;
|
|
--handle-inline-size: 32px;
|
|
--handle-inset-block-start: var(--cpd-space-4x);
|
|
--handle-inset-block-end: var(--cpd-space-4x);
|
|
}
|
|
|
|
body[data-platform="ios"] .drawer {
|
|
--border-radius: 10px;
|
|
--handle-block-size: 5px;
|
|
--handle-inline-size: 36px;
|
|
--handle-inset-block-start: var(--cpd-space-1-5x);
|
|
--handle-inset-block-end: calc(var(--cpd-space-1x) / 4);
|
|
}
|
|
|
|
.close {
|
|
cursor: pointer;
|
|
color: var(--cpd-color-icon-secondary);
|
|
border-radius: var(--cpd-radius-pill-effect);
|
|
padding: var(--cpd-space-1x);
|
|
background: var(--cpd-color-bg-subtle-secondary);
|
|
border: none;
|
|
}
|
|
|
|
.close svg {
|
|
display: block;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.close:hover {
|
|
background: var(--cpd-color-bg-subtle-primary);
|
|
color: var(--cpd-color-icon-primary);
|
|
}
|
|
}
|
|
|
|
.close:active {
|
|
background: var(--cpd-color-bg-subtle-primary);
|
|
color: var(--cpd-color-icon-primary);
|
|
}
|
|
|
|
.header {
|
|
background: var(--cpd-color-bg-subtle-secondary);
|
|
display: grid;
|
|
}
|
|
|
|
.dialog .header {
|
|
padding-block-start: var(--cpd-space-4x);
|
|
grid-template-columns:
|
|
var(--cpd-space-10x) 1fr minmax(var(--cpd-space-6x), auto)
|
|
var(--cpd-space-4x);
|
|
grid-template-rows: auto minmax(var(--cpd-space-4x), auto);
|
|
/* TODO: Support tabs */
|
|
grid-template-areas: ". title close ." "tabs tabs tabs tabs";
|
|
align-items: center;
|
|
}
|
|
|
|
.dialog .header h2 {
|
|
grid-area: title;
|
|
margin: 0;
|
|
}
|
|
|
|
.drawer .header {
|
|
grid-template-areas: "tabs";
|
|
position: relative;
|
|
}
|
|
|
|
.close {
|
|
grid-area: close;
|
|
}
|
|
|
|
.body {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.dialog .body {
|
|
padding-inline: var(--cpd-space-10x);
|
|
padding-block: var(--cpd-space-10x) var(--cpd-space-12x);
|
|
overflow: auto;
|
|
}
|
|
|
|
.drawer .body {
|
|
padding-inline: var(--cpd-space-4x);
|
|
padding-block: var(--cpd-space-9x) var(--cpd-space-10x);
|
|
}
|
|
|
|
.modal.tabbed .body {
|
|
padding-block-start: 0;
|
|
}
|
|
|
|
.handle {
|
|
content: "";
|
|
position: absolute;
|
|
block-size: var(--handle-block-size);
|
|
inset-inline: calc((100% - var(--handle-inline-size)) / 2);
|
|
inset-block-start: var(--handle-inset-block-start);
|
|
background: var(--cpd-color-icon-secondary);
|
|
border-radius: var(--cpd-radius-pill-effect);
|
|
}
|