1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

[misc] modification for mobile (#4016)

This commit is contained in:
llj
2019-08-22 20:23:08 +08:00
committed by Daniel Pan
parent 2b9257acf9
commit 9996db6f5f
19 changed files with 88 additions and 138 deletions

View File

@@ -483,7 +483,7 @@ class SharedRepoListItem extends React.Component {
}
render() {
if (window.innerWidth >= 768) {
if (Utils.isDesktop()) {
return this.renderPCUI();
} else {
return this.renderMobileUI();

View File

@@ -141,7 +141,7 @@ class SharedRepoListView extends React.Component {
}
render() {
if (window.innerWidth >= 768) {
if (Utils.isDesktop()) {
return this.renderPCUI();
} else {
return this.renderMobileUI();