1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

header fix for macos >= 11

This commit is contained in:
Andrew Simachev 2021-10-27 10:06:40 +03:00
parent c019a4f82e
commit 07e0fbcd03
12 changed files with 13 additions and 13 deletions

View file

@ -210,7 +210,7 @@ function createWindow () {
param.icon = path.join(__dirname, '/electron/icon.icns');
const a = systemVersion.split('.');
if (a.length && (a[0] == 11)) {
if (a.length && (a[0] >= 11)) {
param.trafficLightPosition = { x: 20, y: 18 };
} else {
param.trafficLightPosition = { x: 20, y: 10 };

View file

@ -45,7 +45,7 @@ input, textarea, select { font-family: 'Inter'; }
}
}
html.platformMac.version11 {
html.platformMac.headerBig {
#drag { height: 52px; }
}

View file

@ -159,7 +159,7 @@ html.platformMac {
}
}
html.platformMac.version11 {
html.platformMac.headerBig {
.header { height: 52px !important; line-height: 28px; }
.header {
.side { top: 12px; }

View file

@ -5,6 +5,6 @@
.wrapper > .loaderWrapper { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; }
}
html.platformMac.version11 {
html.platformMac.headerBig {
.pageMainEdit .wrapper { padding-top: 52px; }
}

View file

@ -40,6 +40,6 @@
.blockLast { height: 100px; }
}
html.platformMac.version11 {
html.platformMac.headerBig {
.pageMainHistory .wrapper { padding-top: 52px; }
}

View file

@ -193,6 +193,6 @@
}
}
html.platformMac.version11 {
html.platformMac.headerBig {
.pageMainIndex .blocks { padding-top: 104px; }
}

View file

@ -75,6 +75,6 @@
.pageMainMedia > .loaderWrapper { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; }
html.platformMac.version11 {
html.platformMac.headerBig {
.pageMainMedia .blocks { padding-top: 74px; }
}

View file

@ -78,6 +78,6 @@
.pageMainRelation > .loaderWrapper { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; }
html.platformMac.version11 {
html.platformMac.headerBig {
.pageMainRelation .wrapper { padding-top: 144px; }
}

View file

@ -119,6 +119,6 @@
.pageMainType > .loaderWrapper { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; }
html.platformMac.version11 {
html.platformMac.headerBig {
.pageMainType .wrapper { padding-top: 144px; }
}

View file

@ -72,7 +72,7 @@ html.platformWindows {
}
}
html.platformMac.version11 {
html.platformMac.headerBig {
.popups {
.popup.popupSearch {
.innerWrap { top: 52px; }

View file

@ -283,8 +283,8 @@ class Page extends React.Component<Props, {}> {
const obj = $(isPopup ? '#popupPage #wrap' : 'html');
const a = version.split('.');
if (a.length) {
cn.push('version' + a[0]);
if (a.length && a[0] >= 11) {
cn.push('headerBig');
};
if (config.debug.ui) {

View file

@ -957,7 +957,7 @@ class Util {
if (platform == I.Platform.Windows) {
s = 68;
};
if ((platform == I.Platform.Mac) && (v == '11')) {
if ((platform == I.Platform.Mac) && (v >= 11)) {
s = 52;
};
return s;