mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
* gui: Remove footer and move links to header (fixes #5607) Currently, the footer is always present and takes space at the bottom of the GUI. However, the links listed there are not part of everyday user interaction, and as such, they unnecessarily clutter the page, reducing the usable screen space. Thus, transform the current Help link in the header into a Help dropdown menu, and move the links from the footer into it. Also apply the following tweaks: 1. Move the About dialog from Actions to Help. 2. Add an Introduction (to the GUI) link to Help. 3. Change the Support icon from a question mark to a group of people. 4. Change the Changelog and About icons to a filled version to match the other icons better. 5. Use a source code icon for Source Code instead of a wrench icon, and move the wrench icon to Logs. This is done to prevent Changelog and Logs from using the same icon. 6. Update all dropdown icons' Fork Awesome styles to "fa fa-fw <icon>". Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com> * a few more Fork Awesome style updates --------- Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
This commit is contained in:
parent
325b3b114f
commit
2abba1dfb0
@ -8,7 +8,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding-bottom: 70px;
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
@ -398,25 +397,6 @@ ul.three-columns li, ul.two-columns li {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Footer nav on small devices **/
|
|
||||||
@media (max-width: 1199px) {
|
|
||||||
/* Stay at the end of the page, with space reserved for the footer
|
|
||||||
usually taking up two rows. */
|
|
||||||
|
|
||||||
html {
|
|
||||||
position: relative;
|
|
||||||
min-height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
padding-bottom: 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-fixed-bottom {
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
/* Layout after the normal contents, as this is when the footer switches
|
/* Layout after the normal contents, as this is when the footer switches
|
||||||
to a vertical layout. */
|
to a vertical layout. */
|
||||||
@ -429,10 +409,6 @@ ul.three-columns li, ul.two-columns li {
|
|||||||
margin: 3.25px -15px;
|
margin: 3.25px -15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-fixed-bottom {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-nav .open .dropdown-menu {
|
.navbar-nav .open .dropdown-menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: auto;
|
left: auto;
|
||||||
@ -476,10 +452,6 @@ ul.three-columns li, ul.two-columns li {
|
|||||||
.navbar-nav .open .dropdown-menu > li > a {
|
.navbar-nav .open .dropdown-menu > li > a {
|
||||||
padding: 12px 15px 12px 25px;
|
padding: 12px 15px 12px 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-fixed-bottom li {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-content {
|
.tab-content {
|
||||||
|
@ -87,36 +87,45 @@
|
|||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li class="dropdown" language-select></li>
|
<li class="dropdown" language-select></li>
|
||||||
<li>
|
<li class="dropdown action-menu">
|
||||||
<a class="navbar-link" href="{{docsURL('intro/gui')}}" target="_blank">
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||||
<span class="fas fa-question-circle"></span>
|
<span class="fa fa-question-circle"></span>
|
||||||
<span class="hidden-xs" translate>Help</span>
|
<span class="hidden-xs" translate>Help</span>
|
||||||
|
<span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a class="navbar-link" href="{{docsURL('intro/gui')}}" target="_blank"><span class="fa fa-fw fa-info-circle"></span> <span translate>Introduction</span></a></li>
|
||||||
|
<li class="divider" aria-hidden="true"></li>
|
||||||
|
<li><a class="navbar-link" href="https://syncthing.net/" target="_blank"><span class="fa fa-fw fa-home"></span> <span translate>Home page</span></a></li>
|
||||||
|
<li><a class="navbar-link" href="{{docsURL()}}" target="_blank"><span class="fa fa-fw fa-book"></span> <span translate>Documentation</span></a></li>
|
||||||
|
<li><a class="navbar-link" href="https://forum.syncthing.net" target="_blank"><span class="fa fa-fw fa-users"></span> <span translate>Support</span></a></li>
|
||||||
|
<li class="divider" aria-hidden="true"></li>
|
||||||
|
<li><a class="navbar-link" href="https://github.com/syncthing/syncthing/releases" target="_blank"><span class="fa fa-fw fa-file-text"></span> <span translate>Changelog</span></a></li>
|
||||||
|
<li><a class="navbar-link" href="https://data.syncthing.net/" target="_blank"><span class="fa fa-fw fa-bar-chart"></span> <span translate>Statistics</span></a></li>
|
||||||
|
<li class="divider" aria-hidden="true"></li>
|
||||||
|
<li><a class="navbar-link" href="https://github.com/syncthing/syncthing/issues" target="_blank"><span class="fa fa-fw fa-bug"></span> <span translate>Bugs</span></a></li>
|
||||||
|
<li><a class="navbar-link" href="https://github.com/syncthing/syncthing" target="_blank"><span class="fa fa-fw fa-file-code-o"></span> <span translate>Source Code</span></a></li>
|
||||||
|
<li class="divider" aria-hidden="true"></li>
|
||||||
|
<li><a href="" ng-click="about.show()"><span class="fa fa-fw fa-heart"></span> <span translate>About</span></a></li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="dropdown action-menu">
|
<li class="dropdown action-menu">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||||
<span class="fas fa-cog"></span>
|
<span class="fa fa-cog"></span>
|
||||||
<span class="hidden-xs" translate>Actions</span>
|
<span class="hidden-xs" translate>Actions</span>
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="" ng-click="showSettings()"><span class="fas fa-fw fa-cog"></span> <span translate>Settings</span></a></li>
|
<li><a href="" ng-click="showSettings()"><span class="fa fa-fw fa-cog"></span> <span translate>Settings</span></a></li>
|
||||||
<li><a href="" ng-click="showDeviceIdentification(thisDevice())"><span class="fas fa-fw fa-qrcode"></span> <span translate>Show ID</span></a></li>
|
<li><a href="" ng-click="showDeviceIdentification(thisDevice())"><span class="fa fa-fw fa-qrcode"></span> <span translate>Show ID</span></a></li>
|
||||||
<li class="divider" aria-hidden="true"></li>
|
<li class="divider" aria-hidden="true"></li>
|
||||||
<li><a href="" ng-click="shutdown()"><span class="fas fa-fw fa-power-off"></span> <span translate>Shutdown</span></a></li>
|
<li><a href="" ng-click="shutdown()"><span class="fa fa-fw fa-power-off"></span> <span translate>Shutdown</span></a></li>
|
||||||
<li><a href="" ng-click="restart()"><span class="fas fa-fw fa-refresh"></span> <span translate>Restart</span></a></li>
|
<li><a href="" ng-click="restart()"><span class="fa fa-fw fa-refresh"></span> <span translate>Restart</span></a></li>
|
||||||
<li class="divider" aria-hidden="true"></li>
|
<li class="divider" aria-hidden="true"></li>
|
||||||
<li class="visible-xs">
|
<li><a href="" ng-click="advanced()"><span class="fa fa-fw fa-cogs"></span> <span translate>Advanced</span></a></li>
|
||||||
<a href="{{docsURL('intro/gui')}}" target="_blank">
|
<li><a href="" ng-click="logging.show()"><span class="fa fa-fw fa-wrench"></span> <span translate>Logs</span></a></li>
|
||||||
<span class="fas fa-fw fa-question-circle"></span> <span translate>Help</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="" ng-click="about.show()"><span class="far fa-fw fa-heart"></span> <span translate>About</span></a></li>
|
|
||||||
<li class="divider" aria-hidden="true"></li>
|
|
||||||
<li><a href="" ng-click="advanced()"><span class="fas fa-fw fa-cogs"></span> <span translate>Advanced</span></a></li>
|
|
||||||
<li><a href="" ng-click="logging.show()"><span class="far fa-fw fa-file-alt"></span> <span translate>Logs</span></a></li>
|
|
||||||
<li class="divider" aria-hidden="true" ng-if="config.gui.debugging"></li>
|
<li class="divider" aria-hidden="true" ng-if="config.gui.debugging"></li>
|
||||||
<li><a href="/rest/debug/support" target="_blank" ng-if="config.gui.debugging"><span class="fa fa-user-md"></span> <span translate>Support Bundle</span></a></li>
|
<li><a href="/rest/debug/support" target="_blank" ng-if="config.gui.debugging"><span class="fa fa-fw fa-user-md"></span> <span translate>Support Bundle</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -957,22 +966,6 @@
|
|||||||
</div> <!-- /container -->
|
</div> <!-- /container -->
|
||||||
</div> <!-- /ng-cloak -->
|
</div> <!-- /ng-cloak -->
|
||||||
|
|
||||||
<!-- Bottom bar -->
|
|
||||||
|
|
||||||
<nav class="navbar navbar-default navbar-fixed-bottom">
|
|
||||||
<div class="container">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li><a class="navbar-link" href="https://syncthing.net/" target="_blank"><span class="fas fa-home"></span> <span translate>Home page</span></a></li>
|
|
||||||
<li><a class="navbar-link" href="{{docsURL()}}" target="_blank"><span class="fas fa-book"></span> <span translate>Documentation</span></a></li>
|
|
||||||
<li><a class="navbar-link" href="https://forum.syncthing.net" target="_blank"><span class="fas fa-question-circle"></span> <span translate>Support</span></a></li>
|
|
||||||
<li><a class="navbar-link" href="https://data.syncthing.net/" target="_blank"><span class="fas fa-bar-chart"></span> <span translate>Statistics</span></a></li>
|
|
||||||
<li><a class="navbar-link" href="https://github.com/syncthing/syncthing/releases" target="_blank"><span class="far fa-file-alt"></span> <span translate>Changelog</span></a></li>
|
|
||||||
<li><a class="navbar-link" href="https://github.com/syncthing/syncthing/issues" target="_blank"><span class="fas fa-bug"></span> <span translate>Bugs</span></a></li>
|
|
||||||
<li><a class="navbar-link" href="https://github.com/syncthing/syncthing" target="_blank"><span class="fas fa-wrench"></span> <span translate>Source Code</span></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<ng-include src="'syncthing/core/networkErrorDialogView.html'"></ng-include>
|
<ng-include src="'syncthing/core/networkErrorDialogView.html'"></ng-include>
|
||||||
<ng-include src="'syncthing/core/httpErrorDialogView.html'"></ng-include>
|
<ng-include src="'syncthing/core/httpErrorDialogView.html'"></ng-include>
|
||||||
<ng-include src="'syncthing/core/restartingDialogView.html'"></ng-include>
|
<ng-include src="'syncthing/core/restartingDialogView.html'"></ng-include>
|
||||||
|
Loading…
Reference in New Issue
Block a user