移动设备改进
This commit is contained in:
39
ui/style.css
39
ui/style.css
@@ -19,6 +19,45 @@ html {
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
#index-table th:nth-child(5) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#index-table td:nth-child(6) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ellipsis {
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
line-clamp: 2;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.desktoponly {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#index-table th:last-child,
|
||||
#index-table td:last-child {
|
||||
text-align: right;
|
||||
padding: 0.25em 0 !important;
|
||||
}
|
||||
|
||||
#index-table th:nth-child(2),
|
||||
#index-table td:nth-child(3) {
|
||||
width: 52%;
|
||||
}
|
||||
|
||||
#index-table th:nth-child(3),
|
||||
#index-table td:nth-child(4) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<meta charset="utf-8">
|
||||
<title>{{.Title}}</title>
|
||||
<link rel="preconnect" href="https://fonts.loli.net">
|
||||
@@ -99,9 +100,9 @@
|
||||
</table>
|
||||
<div style="display: none;" onclick="afi.utils.helpOff()" id="help-panel">
|
||||
<br>
|
||||
<h3>帮助信息与按键绑定</h3>
|
||||
<p>^[X] 表示组合键 Ctrl + [X] 或 Meta + [X]</p>
|
||||
<table>
|
||||
<h3 class="desktoponly">帮助信息与按键绑定</h3>
|
||||
<p class="desktoponly">^[X] 表示组合键 Ctrl + [X] 或 Meta + [X]</p>
|
||||
<table class="desktoponly">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>使用键盘浏览文件系统</td>
|
||||
@@ -145,7 +146,7 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br class="desktoponly">
|
||||
<h3>关于 AFI</h3>
|
||||
<p>AFI (敏捷文件索引器) 是 Go 编写的轻量级文件服务器.<br>
|
||||
AFI 是基于 Gossa 的现代化改进与维护分支, 以 MIT 协议在<a href="">此处</a>开放源代码.<br>
|
||||
|
||||
Reference in New Issue
Block a user