perf: 修改移动设备下的表现

This commit is contained in:
ibuler
2022-06-16 18:44:11 +08:00
committed by Jiangjie.Bai
parent 91c6a4d6b2
commit 5f984ecbe6
2 changed files with 17 additions and 9 deletions

View File

@@ -1,11 +1,9 @@
<template>
<div class="footer" :style="style">
<div class="pull-right">
<div class="footer" :class="device" :style="style">
<div class="pull-right version">
Version <strong> dev </strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv2. </span>
</div>
<div style="padding-left:20px;">
{{ publicSettings.XPACK_LICENSE_INFO.corporation }}
</div>
<div>{{ corporation }}</div>
</div>
</template>
<script>
@@ -27,7 +25,10 @@ export default {
if (this.device === 'mobile') {
return ''
}
return this.sidebar.opened ? ('margin-left: 210px;') : ('margin-left: 54px')
return this.sidebar.opened ? ('margin-left: 220px;') : ('margin-left: 54px')
},
corporation() {
return this.publicSettings.XPACK_LICENSE_INFO.corporation
}
}
}
@@ -38,9 +39,9 @@ export default {
height: 35px !important;
}
.pull-right {
float: right!important;
float: right
}
.footer{
.footer {
position: fixed;
bottom: 0;
left: 0;
@@ -55,4 +56,11 @@ export default {
font-size: 13px;
}
}
.mobile.footer {
text-align: center;
}
.mobile.footer .pull-right{
float: none;
display: block;
}
</style>

View File

@@ -6,7 +6,7 @@
</div>
<div class="active-mobile">
<ViewSwitcher mode="vertical" class="mobile-view-switch" />
<Organization class="organization" />
<Organization v-if="$hasLicense()" class="organization" />
</div>
<div class="nav-title" :class="{'collapsed': isCollapse}">
{{ isTitle }}