Skip to content

Commit

Permalink
Context menu not visible for nested events in narrow view (#4673)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonidoo authored Oct 25, 2024
1 parent 997d498 commit 5fac05b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions scripts/apps/search/components/SmoothLoaderForKey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ export class SmoothLoaderForKey extends React.PureComponent<IProps, IState> {
const {children} = this.props;
const style: CSSProperties = loading
? {position: 'absolute', insetInlineStart: -9999, insetBlockStart: -9999, visibility: 'hidden'}
: {height: '100%'};
: {height: '100%', display: 'contents'};

return (
<div
ref={(ref) => {
this.wrapper = ref;
}}
style={{height: '100%'}}
style={{height: '100%', display: 'contents'}}
>
{(() => {
if (loading) {
Expand Down
26 changes: 12 additions & 14 deletions scripts/core/with-resources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {fetchChangedResources} from './helpers/CrudManager';
import {throttleAndCombineArray} from './itemList/throttleAndCombine';
import {addWebsocketEventListener} from './notification/notification';
import {SuperdeskReactComponent} from './SuperdeskReactComponent';
import {SmoothLoaderForKey} from 'apps/search/components/SmoothLoaderForKey';
import {SmoothLoaderForKey} from '../apps/search/components/SmoothLoaderForKey';
import {prepareSuperdeskQuery} from './helpers/universal-query';

interface IState {
Expand Down Expand Up @@ -237,19 +237,17 @@ export class WithLiveResources
const key = JSON.stringify(omit(this.props, 'children'));

return (
<div>
<SmoothLoaderForKey
key_={key}
ref={(ref) => {
this.smoothLoaderRef = ref;
}}
>
<WithLiveResourcesComponent
{...this.props}
onInitialized={this.setLoaded}
/>
</SmoothLoaderForKey>
</div>
<SmoothLoaderForKey
key_={key}
ref={(ref) => {
this.smoothLoaderRef = ref;
}}
>
<WithLiveResourcesComponent
{...this.props}
onInitialized={this.setLoaded}
/>
</SmoothLoaderForKey>
);
}
}

0 comments on commit 5fac05b

Please sign in to comment.