mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 20:12:48 +00:00
perf: 优化iPadOS兼容性
This commit is contained in:
parent
bbe071545d
commit
43711a1a59
2
resources/assets/js/store/actions.js
vendored
2
resources/assets/js/store/actions.js
vendored
@ -176,6 +176,8 @@ export default {
|
|||||||
return resolve(null)
|
return resolve(null)
|
||||||
}
|
}
|
||||||
$A.eeuiAppGetSafeAreaInsets().then(data => {
|
$A.eeuiAppGetSafeAreaInsets().then(data => {
|
||||||
|
data.top = data.top || state.safeAreaSize?.data?.top || 0
|
||||||
|
data.bottom = data.bottom || state.safeAreaSize?.data?.bottom || 0
|
||||||
const proportion = data.height / window.outerHeight
|
const proportion = data.height / window.outerHeight
|
||||||
state.safeAreaSize = {
|
state.safeAreaSize = {
|
||||||
top: Math.round(data.top / proportion * 100) / 100,
|
top: Math.round(data.top / proportion * 100) / 100,
|
||||||
|
|||||||
@ -147,10 +147,6 @@
|
|||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
.messenger-list {
|
.messenger-list {
|
||||||
flex: 1;
|
|
||||||
height: 0;
|
|
||||||
width: 100%;
|
|
||||||
overflow-x: hidden;
|
|
||||||
ul {
|
ul {
|
||||||
> li {
|
> li {
|
||||||
&.nothing {
|
&.nothing {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user