Skip to content

Fix - Actionbar menus are hidden behind the document viewer #2048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 16, 2025

Conversation

dsuren1
Copy link

@dsuren1 dsuren1 commented May 13, 2025

Description

This PR fixes the menu items hidden in viewer

Screenshot

image

@dsuren1 dsuren1 added this to the 5.0.0 milestone May 13, 2025
@dsuren1 dsuren1 requested a review from allyoucanmap May 13, 2025 06:29
@dsuren1 dsuren1 self-assigned this May 13, 2025
@dsuren1 dsuren1 added the bug Something isn't working label May 13, 2025
@@ -32,7 +32,6 @@
justify-content: center;
font-size: 14px;
flex-direction: column;
z-index: 100;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .gn-main-event-container is used by multiple components including global loaders and feeback messages so I would prefer to not change this.
The other strange thins is the used of .gn-main-event-container inside the MetadataPreview component.
I would prefer we have a dedicated className and use of utility classes:

import FlexBox from '@mapstore/framework/components/layout/FlexBox';
import React from 'react';

function MetadataPreview({
    url
}) {
    return (
        <FlexBox column centerChildren classNames={['gn-metadata-preview', '_corner-tl', '_absolute', '_fill']}>
            <iframe
                frameBorder="0"
                key={url}
                src={url}
                style={{
                    width: '100%',
                    height: '100%'
                }} />
        </FlexBox>
    );
}

please check if this is working as expected

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine. Thanks!
Also fixed a couple of issues when adhoc testing

  • Hide footer placeholder in viewer page
  • download menu button alignment

@dsuren1 dsuren1 requested a review from allyoucanmap May 16, 2025 10:21
@allyoucanmap allyoucanmap merged commit 4a9bf0f into GeoNode:master May 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants