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-19 14:37:52 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
d6888fa2d8dc53bd22febc3df7170adfa2d65621
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: 326ms Template: 5ms
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