Skip to content

Commit cf48b3f

Browse files
author
Pooya Parsa
committedNov 16, 2017
fix(meta): remove minimal-ui from default viewport
#10
1 parent 12afb41 commit cf48b3f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

Diff for: ‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ You can optionally override meta using either `manifest` or `meta` section of `n
120120
Meta / Link | Customize With | Default value
121121
---------------------------------------|-----------------------|-------------------
122122
`charset` | `charset` | `utf-8`
123-
`viewport` | `viewport` | `width=device-width, initial-scale=1, minimal-ui`
123+
`viewport` | `viewport` | `width=device-width, initial-scale=1`
124124
`mobile-web-app-capable` | `mobileApp` | `true`
125125
`apple-mobile-web-app-capable` | `mobileAppIOS`* | **`false`**
126126
`apple-mobile-web-app-status-bar-style`| `appleStatusBarStyle`*| `default`

Diff for: ‎packages/meta/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = function nuxtMeta (_options) {
66
name: process.env.npm_package_name,
77
description: process.env.npm_package_description,
88
charset: 'utf-8',
9-
viewport: 'width=device-width, initial-scale=1, minimal-ui',
9+
viewport: undefined,
1010
mobileApp: true,
1111
favicon: true,
1212
mobileAppIOS: false,
@@ -21,6 +21,11 @@ module.exports = function nuxtMeta (_options) {
2121
// Combine sources
2222
const options = Object.assign({}, defaults, this.options.manifest, this.options.meta, _options)
2323

24+
// Default value for viewport
25+
if (options.viewport === undefined) {
26+
options.viewport = 'width=device-width, initial-scale=1'
27+
}
28+
2429
// Charset
2530
if (options.charset && !find(this.options.head.meta, 'charset')) {
2631
this.options.head.meta.push({ charset: options.charset })

0 commit comments

Comments
 (0)
Please sign in to comment.