Fossil SCM

Tapping the Zoom button on a zoomed messages now unzooms it (same as the Close Zoom button).

stephan 2025-11-27 14:00 trunk
Commit 24e050a0be0e07c0bb22c042cd77f93109fa3315c4abba4caf995455e8af4f6b
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -609,22 +609,19 @@
609609
/**
610610
Makes message element eMsg the content of this.e.viewZoom.
611611
*/
612612
zoomMessage: function(eMsg){
613613
const marker = this.e.zoomMarker;
614
- if( !eMsg ){
614
+ if( !eMsg || eMsg===this.e.zoomedMsg ){
615615
if( this.e.zoomedMsg ){
616616
marker.parentNode.insertBefore(this.e.zoomedMsg, marker);
617617
delete this.e.zoomedMsg;
618618
}
619619
this.setCurrentView(this.e.viewMessages);
620620
return;
621621
}
622622
console.log("zoom message",eMsg);
623
- if( eMsg===this.e.zoomedMsg ){
624
- return;
625
- }
626623
if( this.e.zoomedMsg ){
627624
marker.parentNode.insertBefore(this.e.zoomedMsg, marker);
628625
}
629626
this.e.viewMessages.insertBefore(marker, eMsg);
630627
this.e.zoomContent.appendChild(eMsg);
631628
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -609,22 +609,19 @@
609 /**
610 Makes message element eMsg the content of this.e.viewZoom.
611 */
612 zoomMessage: function(eMsg){
613 const marker = this.e.zoomMarker;
614 if( !eMsg ){
615 if( this.e.zoomedMsg ){
616 marker.parentNode.insertBefore(this.e.zoomedMsg, marker);
617 delete this.e.zoomedMsg;
618 }
619 this.setCurrentView(this.e.viewMessages);
620 return;
621 }
622 console.log("zoom message",eMsg);
623 if( eMsg===this.e.zoomedMsg ){
624 return;
625 }
626 if( this.e.zoomedMsg ){
627 marker.parentNode.insertBefore(this.e.zoomedMsg, marker);
628 }
629 this.e.viewMessages.insertBefore(marker, eMsg);
630 this.e.zoomContent.appendChild(eMsg);
631
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -609,22 +609,19 @@
609 /**
610 Makes message element eMsg the content of this.e.viewZoom.
611 */
612 zoomMessage: function(eMsg){
613 const marker = this.e.zoomMarker;
614 if( !eMsg || eMsg===this.e.zoomedMsg ){
615 if( this.e.zoomedMsg ){
616 marker.parentNode.insertBefore(this.e.zoomedMsg, marker);
617 delete this.e.zoomedMsg;
618 }
619 this.setCurrentView(this.e.viewMessages);
620 return;
621 }
622 console.log("zoom message",eMsg);
 
 
 
623 if( this.e.zoomedMsg ){
624 marker.parentNode.insertBefore(this.e.zoomedMsg, marker);
625 }
626 this.e.viewMessages.insertBefore(marker, eMsg);
627 this.e.zoomContent.appendChild(eMsg);
628
--- src/style.chat.css
+++ src/style.chat.css
@@ -483,11 +483,11 @@
483483
overflow: auto;
484484
}
485485
body.chat #chat-zoom-content > .message-widget {
486486
flex-grow: 1;
487487
}
488
-body.chat #chat-zoom-content > .message-widget .message-widget-content {
488
+body.chat #chat-zoom-content > .message-widget > .message-widget-content {
489489
width: 100%;
490490
}
491491
body.chat #chat-config #chat-config-options {
492492
/* /chat config options go here */
493493
flex: 1 1 auto;
494494
--- src/style.chat.css
+++ src/style.chat.css
@@ -483,11 +483,11 @@
483 overflow: auto;
484 }
485 body.chat #chat-zoom-content > .message-widget {
486 flex-grow: 1;
487 }
488 body.chat #chat-zoom-content > .message-widget .message-widget-content {
489 width: 100%;
490 }
491 body.chat #chat-config #chat-config-options {
492 /* /chat config options go here */
493 flex: 1 1 auto;
494
--- src/style.chat.css
+++ src/style.chat.css
@@ -483,11 +483,11 @@
483 overflow: auto;
484 }
485 body.chat #chat-zoom-content > .message-widget {
486 flex-grow: 1;
487 }
488 body.chat #chat-zoom-content > .message-widget > .message-widget-content {
489 width: 100%;
490 }
491 body.chat #chat-config #chat-config-options {
492 /* /chat config options go here */
493 flex: 1 1 auto;
494

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button