fix iphone drive view toggle and update changelog

pull/1/head
ansuz 4 years ago
parent 260fa16058
commit 3c49b011cc

@ -27,6 +27,8 @@
* Add DAPSI to our sponsor list * Add DAPSI to our sponsor list
* checkup * checkup
* check for duplicate or incorrect headers * check for duplicate or incorrect headers
* save rendered markmap, mathjax, and mermaid as images
* guard against incorrect iPhone behaviour that broke the ability to toggle between grid and list mode
# 4.4.0 # 4.4.0

@ -897,7 +897,12 @@
.cp-toolbar-bottom-right { .cp-toolbar-bottom-right {
.fa-history { order: 50; } .fa-history { order: 50; }
// .fa-list, .fa-th-large, // .fa-list, .fa-th-large,
.cp-drive-viewmode-button { order: 25; } .cp-app-drive-viewmode-button {
order: 25;
i {
margin-right: 0;
}
}
#cp-app-drive-toolbar-context-mobile, #cp-app-drive-toolbar-contextbuttons { order: 0; } #cp-app-drive-toolbar-context-mobile, #cp-app-drive-toolbar-contextbuttons { order: 0; }
#cp-app-drive-toolbar-context-mobile { #cp-app-drive-toolbar-context-mobile {
.fa { margin: 0 !important; } .fa { margin: 0 !important; }

@ -2416,10 +2416,10 @@ define([
// Create the button allowing the user to switch from list to icons modes // Create the button allowing the user to switch from list to icons modes
var createViewModeButton = function ($container) { var createViewModeButton = function ($container) {
var viewMode = getViewMode(); var viewMode = getViewMode();
var gridIcon = h('button.fa.fa-th-large', { title: Messages.fm_viewGridButton }); var gridIcon = h('i.fa.fa-th-large', { title: Messages.fm_viewGridButton });
var listIcon = h('button.fa.fa-list', { title: Messages.fm_viewListButton }); var listIcon = h('i.fa.fa-list', { title: Messages.fm_viewListButton });
var $button = $(h('span.cp-drive-viewmode-button', [ var $button = $(h('button.cp-app-drive-viewmode-button', [
gridIcon, gridIcon,
listIcon listIcon
])); ]));

Loading…
Cancel
Save