Tighten mobile meet room header and bottom toolbar layout.
Deploy Ladill Meet / deploy (push) Successful in 50s
Deploy Ladill Meet / deploy (push) Successful in 50s
Show participant count without labels on phones, cap the title at 40% width, and keep four bottom-nav icons by moving React into More only after speak access is granted. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -85,19 +85,44 @@ class ParticipantPresenter
|
||||
* @param list<array<string, mixed>> $participants
|
||||
* @param list<string> $presenterRefs
|
||||
*/
|
||||
public static function headerCountLabel(array $participants, bool $usesStageLayout, array $presenterRefs = []): string
|
||||
public static function headerCountNumber(array $participants, bool $usesStageLayout, array $presenterRefs = []): string
|
||||
{
|
||||
$joined = array_values(array_filter($participants, fn ($p) => ($p['status'] ?? '') === 'joined'));
|
||||
|
||||
if ($usesStageLayout) {
|
||||
$count = count(array_filter($joined, fn ($p) => self::isSpeakerPerson($p, $presenterRefs)));
|
||||
} else {
|
||||
$count = count($joined);
|
||||
}
|
||||
|
||||
return (string) $count;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param list<array<string, mixed>> $participants
|
||||
* @param list<string> $presenterRefs
|
||||
*/
|
||||
public static function headerCountSuffix(array $participants, bool $usesStageLayout, array $presenterRefs = []): string
|
||||
{
|
||||
$joined = array_values(array_filter($participants, fn ($p) => ($p['status'] ?? '') === 'joined'));
|
||||
|
||||
if ($usesStageLayout) {
|
||||
$count = count(array_filter($joined, fn ($p) => self::isSpeakerPerson($p, $presenterRefs)));
|
||||
|
||||
return $count === 1 ? '1 speaker' : "{$count} speakers";
|
||||
return $count === 1 ? ' speaker' : ' speakers';
|
||||
}
|
||||
|
||||
$count = count($joined);
|
||||
return ' in call';
|
||||
}
|
||||
|
||||
return "{$count} in call";
|
||||
/**
|
||||
* @param list<array<string, mixed>> $participants
|
||||
* @param list<string> $presenterRefs
|
||||
*/
|
||||
public static function headerCountLabel(array $participants, bool $usesStageLayout, array $presenterRefs = []): string
|
||||
{
|
||||
return self::headerCountNumber($participants, $usesStageLayout, $presenterRefs)
|
||||
.self::headerCountSuffix($participants, $usesStageLayout, $presenterRefs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user