diff --git a/demo/debugComponents/scrollbarDebug/scaffold.demo.vue b/demo/debugComponents/scrollbarDebug/scaffold.demo.vue index e01aafe23..e2498ce6f 100644 --- a/demo/debugComponents/scrollbarDebug/scaffold.demo.vue +++ b/demo/debugComponents/scrollbarDebug/scaffold.demo.vue @@ -38,6 +38,16 @@ +
Inspect some value here@@ -50,8 +60,82 @@ diff --git a/package.json b/package.json index 65a26cc6a..4325a5257 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "naive-ui", - "version": "0.2.61", + "version": "0.2.67", "description": "", "main": "index.js", "scripts": { diff --git a/styles/Scrollbar.scss b/styles/Scrollbar.scss index 3f929f719..9a701e11d 100644 --- a/styles/Scrollbar.scss +++ b/styles/Scrollbar.scss @@ -52,11 +52,11 @@ } .n-scrollbar-content { - width: max-content; + width: fit-content; overflow: visible; min-width: 100%; - width: intrinsic; /* Safari/WebKit uses a non-standard name */ - width: -moz-max-content; /* Firefox/Gecko */ - width: -webkit-max-content; /* Chrome */ - width: max-content; + /* stylelint-disable */ + width: -moz-fit-content; /* Firefox/Gecko */ + width: -webkit-fit-content; /* Chrome */ + /* stylelint-enable */ } \ No newline at end of file