Compare commits

...

1 Commits

Author SHA1 Message Date
Florian Duros
47ced3fcc2 feat: remove blur effect in space 2025-04-11 12:09:29 +02:00
3 changed files with 17 additions and 3 deletions

View File

@@ -30,6 +30,11 @@ Please see LICENSE files in the repository root for full details.
width: 68px;
}
&.newUi {
background-color: var(--cpd-color-bg-canvas-default);
border-right: 1px solid var(--cpd-color-bg-subtle-primary);
}
.mx_SpacePanel_toggleCollapse {
position: absolute;
width: 18px;

View File

@@ -701,6 +701,8 @@ class LoggedInView extends React.Component<IProps, IState> {
return <AudioFeedArrayForLegacyCall call={call} key={call.callId} />;
});
const newRoomListEnabled = SettingsStore.getValue("feature_new_room_list");
return (
<MatrixClientContextProvider client={this._matrixClient}>
<div
@@ -714,9 +716,11 @@ class LoggedInView extends React.Component<IProps, IState> {
<div className="mx_LeftPanel_outerWrapper">
<LeftPanelLiveShareWarning isMinimized={this.props.collapseLhs || false} />
<div className="mx_LeftPanel_wrapper">
<BackdropPanel blurMultiplier={0.5} backgroundImage={this.state.backgroundImage} />
{!newRoomListEnabled && (
<BackdropPanel blurMultiplier={0.5} backgroundImage={this.state.backgroundImage} />
)}
<SpacePanel />
<BackdropPanel backgroundImage={this.state.backgroundImage} />
{!newRoomListEnabled && <BackdropPanel backgroundImage={this.state.backgroundImage} />}
<div
className="mx_LeftPanel_wrapper--user"
ref={this._resizeContainer}

View File

@@ -363,6 +363,8 @@ const SpacePanel: React.FC = () => {
}
});
const newRoomListEnabled = useSettingValue("feature_new_room_list");
return (
<RovingTabIndexProvider handleHomeEnd handleUpDown={!dragging}>
{({ onKeyDownHandler, onDragEndHandler }) => (
@@ -378,7 +380,10 @@ const SpacePanel: React.FC = () => {
}}
>
<nav
className={classNames("mx_SpacePanel", { collapsed: isPanelCollapsed })}
className={classNames("mx_SpacePanel", {
collapsed: isPanelCollapsed,
newUi: newRoomListEnabled,
})}
onKeyDown={(ev) => {
const navAction = getKeyBindingsManager().getNavigationAction(ev);
if (