Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
🐛 安卓微信端样式
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jan 12, 2021
1 parent b4a62d0 commit ab0a9b2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" /> -->
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>AList</title>
</head>
Expand Down
4 changes: 3 additions & 1 deletion src/assets/css/global.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
html,body,#app{
height: 100vh;
/* height: 100vh; */
width: 100%;
margin: 0;
padding: 0;
/* overflow: hidden; */
}

.ant-table-row{
Expand Down
16 changes: 15 additions & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="home">
<div :class="isAdrWx?'home-wx':'home'" >
<div class="layout">
<!--头部 ------------------------------------------------------------------------------------------------------- -->
<div class="header">
Expand Down Expand Up @@ -212,6 +212,7 @@ export default {
text_content:'',//文本内容
iframe_spinning:true,
dp:undefined,
isAdrWx:false,
}
},
methods:{
Expand Down Expand Up @@ -499,6 +500,10 @@ export default {
},
mounted(){
console.log("\n %c Alist %c https://github.com/Xhofe/alist \n\n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;")
// 判断是否安卓微信
if(navigator.userAgent.match(/MicroMessenger/i)&&navigator.userAgent.match(/android/i)){
this.isAdrWx=true
}
this.initInfo()
this.init()
}
Expand All @@ -514,6 +519,15 @@ export default {
padding: 0;
margin: 0;
}
.home-wx{
width: 100%;
display: flex;
display: -webkit-flex; /* Safari */
/* justify-content: center; */
padding: 0;
margin: 0;
}
.layout{
display: flex;
display: -webkit-flex; /* Safari */
Expand Down

1 comment on commit ab0a9b2

@vercel
Copy link

@vercel vercel bot commented on ab0a9b2 Jan 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.