Skip to content

Commit 27839ef

Browse files
authored
issue/78, Youtube player's UI text size is too big (#79)
* feat: Add props('uiScale') that can adjust UI size
1 parent bf4d34e commit 27839ef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/PlayerScripts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ export const MAIN_SCRIPT = (
7878
rel,
7979
start,
8080
},
81-
allowWebViewZoom,
81+
allowWebViewZoom
8282
) => `<!DOCTYPE html>
8383
<html>
8484
<head>
8585
<meta
8686
name="viewport"
87-
content="width=device-width, initial-scale=1.0${
88-
allowWebViewZoom ? '' : ', maximum-scale=1'
87+
content="width=device-width, initial-scale=0.8${
88+
allowWebViewZoom ? '' : ', maximum-scale=0.8'
8989
}"
9090
>
9191
<style>

src/YoutubeIframe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const YoutubeIframe = (props, ref) => {
179179
videoId,
180180
playList,
181181
initialPlayerParams,
182-
allowWebViewZoom,
182+
allowWebViewZoom
183183
),
184184
}}
185185
userAgent={

0 commit comments

Comments
 (0)