gridmode shortcut in the audio drawer

This commit is contained in:
ed 2021-07-17 01:45:05 +02:00
parent bc3bbe07d4
commit 72a8593ecd
2 changed files with 16 additions and 4 deletions

View file

@ -337,10 +337,18 @@ html.light #ggrid a.sel {
height: 100%;
background: #3c3c3c;
}
#wtgrid,
#wtico {
cursor: url(/.cpr/dd/4.png), pointer;
animation: cursor 500ms;
position: relative;
top: -.06em;
}
#wtgrid {
font-size: .8em;
top: -.12em;
}
#wtgrid:hover,
#wtico:hover {
animation: cursor 500ms infinite;
}
@ -358,7 +366,7 @@ html.light #ggrid a.sel {
position: absolute;
top: -1.2em;
right: 0;
width: 1.2em;
width: 2.8em;
height: 1em;
font-size: 2em;
line-height: 1em;
@ -390,10 +398,10 @@ html.light #ggrid a.sel {
line-height: 1em;
}
#wtoggle.np {
width: 5.5em;
width: 7em;
}
#wtoggle.sel {
width: 6.4em;
width: 7.68em;
}
#wtoggle.sel #wzip,
#wtoggle.np #wnp {

View file

@ -37,6 +37,7 @@ ebi('widget').innerHTML = (
' href="#" id="npirc" tt="copy irc-formatted track info">📋irc</a><a' +
' href="#" id="nptxt" tt="copy plaintext track info">📋txt</a>' +
'</span><a' +
' href="#" id="wtgrid">田</a><a' +
' href="#" id="wtico">♫</a>' +
'</div>' +
'<div id="widgeti">' +
@ -1485,8 +1486,11 @@ var thegrid = (function () {
r.setdirty();
};
ebi('griden').onclick = function (e) {
ebi('griden').onclick = ebi('wtgrid').onclick = function (e) {
ev(e);
if (!this.closest)
return;
r.en = !r.en;
bcfg_set('griden', r.en);
if (r.en) {