/* Message photos match the reference (48 x 48); online member cards and    profile photos are deliberately not touched. Existing theme colors remain. */ :root { --sky-chat-message-photo: 48px; --sky-chat-message-offset: 54px; --sky-chat-message-min-height: 52px; } /* The #umsg template is cloned by the original chat code. Do not replace it    or change the handlers: just reserve a fixed column for the photo. */ #d2 .uzr:has(> img.u-pic), .sky-pm-window .d2 .uzr:has(> img.u-pic), #cw .cont > .d2 .uzr:has(> img.u-pic), :is(#d2, #d2bc, .sky-pm-window .d2) > .sky-identity-message { position: relative !important; display: block !important; float: none !important; clear: both !important; width: 100% !important; min-height: var(--sky-chat-message-min-height) !important; height: auto !important; margin: 0 0 1px !important; padding: 2px 3px 2px 2px !important; border-radius: 0 !important; box-sizing: border-box !important; overflow: visible !important; overflow-wrap: anywhere !important; } #d2 .uzr:has(> img.u-pic) > img.u-pic, .sky-pm-window .d2 .uzr:has(> img.u-pic) > img.u-pic, #cw .cont > .d2 .uzr:has(> img.u-pic) > img.u-pic, :is(#d2, #d2bc, .sky-pm-window .d2) > .sky-identity-message > img.u-pic { position: absolute !important; display: block !important; float: none !important; clear: none !important; top: 2px !important; left: 2px !important; right: auto !important; width: var(--sky-chat-message-photo) !important; min-width: var(--sky-chat-message-photo) !important; max-width: var(--sky-chat-message-photo) !important; height: var(--sky-chat-message-photo) !important; min-height: var(--sky-chat-message-photo) !important; max-height: var(--sky-chat-message-photo) !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; object-fit: cover !important; object-position: center !important; box-sizing: border-box !important; } #d2 .uzr:has(> img.u-pic) > .uzr, .sky-pm-window .d2 .uzr:has(> img.u-pic) > .uzr, #cw .cont > .d2 .uzr:has(> img.u-pic) > .uzr, :is(#d2, #d2bc, .sky-pm-window .d2) > .sky-identity-message > .sky-identity-content { position: relative !important; display: block !important; float: none !important; clear: none !important; width: calc(100% - var(--sky-chat-message-offset)) !important; min-width: 0 !important; min-height: 0 !important; height: auto !important; margin: 0 0 0 var(--sky-chat-message-offset) !important; padding: 0 2px 0 0 !important; box-sizing: border-box !important; overflow: visible !important; overflow-wrap: anywhere !important; } /* Keep the username on line one and message on line two. Long messages grow    naturally, including images, replies and voice/media attachments. */ #d2 .uzr:has(> img.u-pic) > .uzr > div.fl:first-child, .sky-pm-window .d2 .uzr:has(> img.u-pic) > .uzr > div.fl:first-child, #cw .cont > .d2 .uzr:has(> img.u-pic) > .uzr > div.fl:first-child, :is(#d2, #d2bc, .sky-pm-window .d2) > .sky-identity-message > .sky-identity-content > div.fl:first-child { display: flex !important; align-items: center !important; flex-wrap: nowrap !important; float: none !important; width: 100% !important; min-width: 0 !important; min-height: 19px !important; height: auto !important; margin: 0 !important; padding: 0 27px 0 0 !important; box-sizing: border-box !important; } #d2 .uzr:has(> img.u-pic) .u-topic, .sky-pm-window .d2 .uzr:has(> img.u-pic) .u-topic, #cw .cont > .d2 .uzr:has(> img.u-pic) .u-topic, :is(#d2, #d2bc, .sky-pm-window .d2) > .sky-identity-message .u-topic, #d2bc > .mm .u-topic { font-size: 14px !important; line-height: 18px !important; min-width: 0 !important; max-width: 100% !important; height: auto !important; margin: 0 !important; vertical-align: middle !important; } #d2 .uzr:has(> img.u-pic) > .uzr > .u-msg, .sky-pm-window .d2 .uzr:has(> img.u-pic) > .uzr > .u-msg, #cw .cont > .d2 .uzr:has(> img.u-pic) > .uzr > .u-msg, :is(#d2, #d2bc, .sky-pm-window .d2) > .sky-identity-message > .sky-identity-content > .u-msg, #d2bc > .mm .u-msg { display: block !important; float: none !important; clear: none !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; min-height: 0 !important; height: auto !important; max-height: none !important; margin: 0 !important; padding: 0 !important; font-size: 14px !important; line-height: 19px !important; white-space: normal !important; overflow: visible !important; overflow-wrap: anywhere !important; word-break: normal !important; } #d2 .uzr:has(> img.u-pic) > .tago, .sky-pm-window .d2 .uzr:has(> img.u-pic) > .tago, #cw .cont > .d2 .uzr:has(> img.u-pic) > .tago, :is(#d2, #d2bc, .sky-pm-window .d2) > .sky-identity-message > .tago { position: absolute !important; top: 3px !important; right: 4px !important; left: auto !important; float: none !important; margin: 0 !important; font-size: 11px !important; line-height: 14px !important; z-index: 1 !important; } /* Reply previews remain in the text column, rather than covering the photo. */ #d2 .uzr:has(> img.u-pic) > .u-rply:not(:empty), .sky-pm-window .d2 .uzr:has(> img.u-pic) > .u-rply:not(:empty), #cw .cont > .d2 .uzr:has(> img.u-pic) > .u-rply:not(:empty), :is(#d2, #d2bc, .sky-pm-window .d2) > .sky-identity-message > .u-rply:not(:empty) { margin-left: var(--sky-chat-message-offset) !important; max-width: calc(100% - var(--sky-chat-message-offset)) !important; box-sizing: border-box !important; } /* Wall posts: the avatar and the username/message share the same two columns.    The existing like/comment/delete buttons stay in their previous positions. */ #dpnl > #wall #d2bc > .mm { float: none !important; } #dpnl > #wall #d2bc > .mm > img.u-pic { position: absolute !important; display: block !important; float: none !important; top: 2px !important; left: 2px !important; width: var(--sky-chat-message-photo) !important; min-width: var(--sky-chat-message-photo) !important; max-width: var(--sky-chat-message-photo) !important; height: var(--sky-chat-message-photo) !important; min-height: var(--sky-chat-message-photo) !important; max-height: var(--sky-chat-message-photo) !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; object-fit: cover !important; box-sizing: border-box !important; } #dpnl > #wall #d2bc > .mm:has(> img.u-pic) > .uzr { display: block !important; float: none !important; clear: none !important; width: calc(100% - var(--sky-chat-message-offset)) !important; max-width: calc(100% - var(--sky-chat-message-offset)) !important; min-width: 0 !important; min-height: 48px !important; height: auto !important; margin: 0 0 0 var(--sky-chat-message-offset) !important; padding: 0 25px 0 0 !important; box-sizing: border-box !important; overflow-wrap: anywhere !important; } /* Some chat versions render the wall photo inside the .uzr itself. */ #dpnl > #wall #d2bc > .mm:not(:has(> img.u-pic)) > .uzr:has(> img.u-pic) { position: relative !important; display: block !important; float: none !important; width: 100% !important; max-width: 100% !important; min-height: 48px !important; margin: 0 !important; padding: 0 25px 0 var(--sky-chat-message-offset) !important; box-sizing: border-box !important; } #dpnl > #wall #d2bc > .mm > .uzr > img.u-pic { position: absolute !important; display: block !important; float: none !important; top: 0 !important; left: 0 !important; width: var(--sky-chat-message-photo) !important; min-width: var(--sky-chat-message-photo) !important; max-width: var(--sky-chat-message-photo) !important; height: var(--sky-chat-message-photo) !important; min-height: var(--sky-chat-message-photo) !important; max-height: var(--sky-chat-message-photo) !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; object-fit: cover !important; box-sizing: border-box !important; } #dpnl > #wall #d2bc > .mm .u-msg img, #dpnl > #wall #d2bc > .mm .u-msg video, #dpnl > #wall #d2bc > .mm .u-msg iframe, #d2 .u-msg img, .sky-pm-window .d2 .u-msg img { max-width: 100% !important; height: auto; } /* Wall comments: compact 48px avatar, two-line name and text, no excess gap. */ #sky-wall-comments-modal .sky-comment-list > div:not(.sky-comment-empty) { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 5px !important; min-height: var(--sky-chat-message-min-height) !important; height: auto !important; padding: 2px 3px !important; margin: 0 !important; box-sizing: border-box !important; } #sky-wall-comments-modal .sky-comment-list > div:not(.sky-comment-empty) > img { flex: 0 0 var(--sky-chat-message-photo) !important; width: var(--sky-chat-message-photo) !important; min-width: var(--sky-chat-message-photo) !important; max-width: var(--sky-chat-message-photo) !important; height: var(--sky-chat-message-photo) !important; min-height: var(--sky-chat-message-photo) !important; max-height: var(--sky-chat-message-photo) !important; margin: 0 !important; padding: 0 !important; object-fit: cover !important; border-radius: 0 !important; } #sky-wall-comments-modal .sky-comment-list > div:not(.sky-comment-empty) > div { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; font-size: 14px !important; line-height: 19px !important; overflow-wrap: anywhere !important; }
/* The real #umsg template is .uzr.sky-identity-message, not .mm.    Anchor the original time and authorized delete button to their own message. */ #room > #d2 > .sky-identity-message, .sky-pm-window .d2 > .sky-identity-message, #dpnl > #wall #d2bc > .mm { position: relative !important; box-sizing: border-box !important; } /* Do not show orphaned timestamps from outside their message container. */ #dpnl > #settings .tago, #dpnl > #wall #d2bc > .tago, #room > #d2 > .tago { display: none !important; } /* Desktop side panels: #d2 already reserves the panel's width once.    Message rows MUST fill #d2; subtracting the panel width again created    the empty white column between public messages and the open wall/users/    settings/private tab. Rooms already used the correct single subtraction. */ @media (min-width: 720px) { body.sky-chat-logged-in.sky-chat-sidepanel-open #room > #d2 > .sky-identity-message, body.sky-chat-logged-in.sky-chat-sidepanel-open #room > #d2 > .uzr, body.sky-chat-logged-in.sky-chat-sidepanel-open #room > #d2 > .mm { width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; margin-left: 0 !important; margin-right: 0 !important; float: none !important; clear: both !important; } } #room > #d2 > .sky-identity-message > .tago, .sky-pm-window .d2 > .sky-identity-message > .tago { position: absolute !important; top: 2px !important; right: 3px !important; bottom: auto !important; left: auto !important; float: none !important; clear: none !important; width: auto !important; max-width: 46px !important; height: 14px !important; padding: 0 !important; margin: 0 !important; line-height: 14px !important; font-size: 11px !important; text-align: right !important; white-space: nowrap !important; pointer-events: none !important; z-index: 1 !important; } /* This is the existing button generated by app.js. No new delete handler. */ #room > #d2 > .sky-identity-message > [onclick*="delmsg"].fa-times, .sky-pm-window .d2 > .sky-identity-message > [onclick*="delmsg"].fa-times { position: absolute !important; top: 19px !important; right: 3px !important; bottom: auto !important; left: auto !important; float: none !important; clear: none !important; width: 17px !important; min-width: 17px !important; max-width: 17px !important; height: 17px !important; min-height: 17px !important; max-height: 17px !important; padding: 0 !important; margin: 0 !important; border-radius: 3px !important; line-height: 16px !important; font-size: 11px !important; text-align: center !important; white-space: nowrap !important; overflow: hidden !important; z-index: 3 !important; box-sizing: border-box !important; } #room > #d2 > .sky-identity-message > [onclick*="delmsg"].fa-times::before, .sky-pm-window .d2 > .sky-identity-message > [onclick*="delmsg"].fa-times::before { font-size: 11px !important; line-height: 16px !important; margin: 0 !important; } #room > #d2 > .sky-identity-message > .sky-identity-content > div.fl:first-child, .sky-pm-window .d2 > .sky-identity-message > .sky-identity-content > div.fl:first-child { padding-right: 32px !important; } /* Keep the panel above public messages (including their delete/time elements).    Private popups and modals still retain their higher stacking levels. */ body.sky-chat-sidepanel-open #dpnl { z-index: 9 !important; } /* Narrow screens use an overlay panel, not a 50px-wide message column.    Hide the underlying public time/delete only while that overlay is open. */ @media (max-width: 719px) { body.sky-chat-sidepanel-open #room > #d2 > .sky-identity-message > .tago, body.sky-chat-sidepanel-open #room > #d2 > .sky-identity-message > [onclick*="delmsg"].fa-times { visibility: hidden !important; pointer-events: none !important; } }
