Give the chat shortcuts worth listing, and a place to list them
Four new keys alongside Ctrl+Enter, rendered from the same list the handler reads so the panel cannot advertise a key that stopped working.
This commit is contained in:
@@ -1224,7 +1224,7 @@ function vvFitRight() {
|
||||
// its floor, and nothing ever raised it again.
|
||||
const availH = Math.max(80, lf.getBoundingClientRect().top - 32
|
||||
- toolbar.getBoundingClientRect().bottom);
|
||||
// Three shares of the panel: 13% collapsed, 20% expanded at Medium, 40% at Large. Collapsed is
|
||||
// Three shares of the panel: 10% collapsed, 20% expanded at Medium, 40% at Large. Collapsed is
|
||||
// deliberately small — enough to see the last exchange and type, while the log, conf or script
|
||||
// being discussed keeps the panel, which is what you are usually asking about. Medium is for
|
||||
// following an answer without giving up the view; Large is for sitting and reading one, and
|
||||
@@ -1251,7 +1251,7 @@ function vvFitRight() {
|
||||
// discussed on screen too; a chat that covers it entirely is not worth the room it took.
|
||||
const VIEW_MIN = 90;
|
||||
const room = Math.max(60, availH - VIEW_MIN - chrome);
|
||||
vvSchedChat.setHeights(Math.min(room, Math.max(60, Math.round(availH * 0.13))) + 'px',
|
||||
vvSchedChat.setHeights(Math.min(room, Math.max(52, Math.round(availH * 0.10))) + 'px',
|
||||
Math.min(room, Math.max(100, Math.round(availH * 0.20))) + 'px',
|
||||
Math.min(room, Math.max(140, Math.round(availH * 0.40))) + 'px');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user