Middle Column: Make empty background draggable in Electron (#3751)
This commit is contained in:
parent
5c14ed4e83
commit
0dc5857247
@ -41,6 +41,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.draggable {
|
||||||
|
-webkit-app-region: drag;
|
||||||
|
}
|
||||||
|
|
||||||
&.customBgImage.blurred::before {
|
&.customBgImage.blurred::before {
|
||||||
filter: blur(12px);
|
filter: blur(12px);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,6 +23,7 @@ import {
|
|||||||
MAX_SCREEN_WIDTH_FOR_EXPAND_PINNED_MESSAGES,
|
MAX_SCREEN_WIDTH_FOR_EXPAND_PINNED_MESSAGES,
|
||||||
EDITABLE_INPUT_ID,
|
EDITABLE_INPUT_ID,
|
||||||
EDITABLE_INPUT_CSS_SELECTOR,
|
EDITABLE_INPUT_CSS_SELECTOR,
|
||||||
|
IS_ELECTRON,
|
||||||
} from '../../config';
|
} from '../../config';
|
||||||
import {
|
import {
|
||||||
IS_ANDROID, IS_IOS, IS_TRANSLATION_SUPPORTED, MASK_IMAGE_DISABLED,
|
IS_ANDROID, IS_IOS, IS_TRANSLATION_SUPPORTED, MASK_IMAGE_DISABLED,
|
||||||
@ -413,6 +414,7 @@ function MiddleColumn({
|
|||||||
backgroundColor && styles.customBgColor,
|
backgroundColor && styles.customBgColor,
|
||||||
customBackground && isBackgroundBlurred && styles.blurred,
|
customBackground && isBackgroundBlurred && styles.blurred,
|
||||||
isRightColumnShown && styles.withRightColumn,
|
isRightColumnShown && styles.withRightColumn,
|
||||||
|
IS_ELECTRON && !(renderingChatId && renderingThreadId) && styles.draggable,
|
||||||
);
|
);
|
||||||
|
|
||||||
const messagingDisabledClassName = buildClassName(
|
const messagingDisabledClassName = buildClassName(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user