mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
gridmode shortcut in the audio drawer
This commit is contained in:
parent
bc3bbe07d4
commit
72a8593ecd
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue