Skip to content
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

Excel Document Preview: Toolbar blocks information #3663

Open
Mikatgithub opened this issue Mar 30, 2024 · 0 comments
Open

Excel Document Preview: Toolbar blocks information #3663

Mikatgithub opened this issue Mar 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Mikatgithub
Copy link

Mikatgithub commented Mar 30, 2024

Version used
4.11

Describe the bug
Excels files opened in Document Preview in the PnP Modern Search Results Web Part shows the toolbar

To Reproduce
Context:Site is set to 'Send queries to a custom results page URL'
1.Type in a Excel file or use a filetype query into the search Microsoft Search box (Tenant top bar)
2. Observe the results and arbitrarily mouse over a document image preview and click it to preview the document
3. Document Preview is presents the Excel sheet with the toolbar blocking all information

Expected behavior
Document Preview should not show large toolbars for Excel sheets and the information inside can be viewed. Word & Powerpoint documents do not have this problem.

Screenshots
DocumentPreview1

Desktop (please complete the following information):
Edge, Version 123.0.2420.65 (Official build) (64-bit)

Additional context
This was a previous issue logged here #764
And here #1794 (comment)

Edit
For some reason, all my code is squished, can't take a screenshot to fit it all in

<div class="template--listItem--thumbnailContainer" data-selection-disabled="true">
                                <div class="thumbnail--image">
                                    <div>Preview</div>
                                    <pnp-filepreview data-preview-url="{{slot item @root.slots.PreviewUrl}}" data-preview-image-url="{{slot item @root.slots.PreviewImageUrl}}" data-theme-variant="{{JSONstringify @root.theme}}">
                                        <pnp-img alt='preview-image' width="120" src="{{slot item @root.slots.PreviewImageUrl}}" loading="lazy" data-error-image="{{@root.utils.defaultImage}}" />
                                    </pnp-filepreview>
                                    <div class="thumbnail--hover">
                                        <div>
                                            <pnp-icon data-name="DocumentSearch" aria-hidden="true"></pnp-icon>
                                        </div>
                                    </div>
                                </div>
                            </div>
@wobba wobba added the enhancement New feature or request label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants