Middle Column: Make empty background draggable in Electron (#3751)

This commit is contained in:
Alexander Zinchuk 2023-08-16 15:27:48 +02:00
parent 5c14ed4e83
commit 0dc5857247
2 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,10 @@
}
}
&.draggable {
-webkit-app-region: drag;
}
&.customBgImage.blurred::before {
filter: blur(12px);
}

View File

@ -23,6 +23,7 @@ import {
MAX_SCREEN_WIDTH_FOR_EXPAND_PINNED_MESSAGES,
EDITABLE_INPUT_ID,
EDITABLE_INPUT_CSS_SELECTOR,
IS_ELECTRON,
} from '../../config';
import {
IS_ANDROID, IS_IOS, IS_TRANSLATION_SUPPORTED, MASK_IMAGE_DISABLED,
@ -413,6 +414,7 @@ function MiddleColumn({
backgroundColor && styles.customBgColor,
customBackground && isBackgroundBlurred && styles.blurred,
isRightColumnShown && styles.withRightColumn,
IS_ELECTRON && !(renderingChatId && renderingThreadId) && styles.draggable,
);
const messagingDisabledClassName = buildClassName(