Logo
Explore Help
Register Sign In
ZF/jitsi-meet
1
0
Fork 0
You've already forked jitsi-meet
mirror of https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git synced 2026-05-22 10:57:47 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
75bb460ccf062ee467b7986deabe84e63047e7e3
jitsi-meet/react/features/large-video/components/styles.js

5 lines
64 B
JavaScript
Raw Normal View History

[RN] Dynamically adjust LargeView's Avatar to available size When in PiP mode the LargeView will not be large enough to hold the avatar (for those interested in the details, our avatar's size is 200, and in PiP mode the app is resized to about 150). In order to solve it, this PR refactors how the avatar style is passed along, reducing it to a single "size" prop. With this only prop, the Avatar compononent will compute the width, height and borderRadius, plus deal with some Android shenanigans. In addition, the LargeView component now uses DimensionsDetector to check its own size and adjust the size prop passed to the Avatar component as needed.
2018-02-05 11:57:40 +01:00
/**
* Size for the Avatar.
*/
export const AVATAR_SIZE = 200;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 289ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API