Fix zoom bug related to #106
This commit is contained in:
parent
7692aa6368
commit
6b5d9ac6d4
|
@ -50,6 +50,13 @@
|
|||
.on(EVENT.LOC_CHANGE, tryLoadRepo)
|
||||
.on(EVENT.TOGGLE, sidebarResized)
|
||||
|
||||
$(window).resize(function() {
|
||||
$(GH_CONTAINERS).addClass('notransition')
|
||||
sidebarResized()
|
||||
setTimeout(function() {
|
||||
$(GH_CONTAINERS).removeClass('notransition')
|
||||
}, 300)
|
||||
})
|
||||
function optionsChanged(event, changes) {
|
||||
var reload = false
|
||||
Object.keys(changes).forEach(function(storeKey) {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
html, .header > .container, .repohead > .container, .site > .container {
|
||||
transition: margin-left .2s ease;
|
||||
}
|
||||
.notransition {
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
.octotree_sidebar {
|
||||
position: fixed;
|
||||
|
|
Loading…
Reference in New Issue