Skip to content

css bugs in resource_data.cpp #330

@jneutron4321

Description

@jneutron4321

Hello,
I tested some files with the 3.0.0 version, and I found a couple of css bugs in the generated html. The bugs are in the resource_data.cpp file:

1-Open this pptx file: https://freetestdata.com/wp-content/uploads/2021/09/Free_Test_Data_100KB_PPTX.pptx. Nothing is visible because the x-p font size is 0:
x-p{display:block;font-size:0}
And this is the size that is applied to the inner text. This does not happen with spreadsheets because there is another x-p style that does contain a valid size:
x-p{font-family:Arial,serif;font-size:10pt}

2-If we open a spreadsheet that has long text in its cells, the best that we can do is truncate it and display ellipsis. But what happens is that the long text overlaps the text of the cells below it. I think that is caused because
td{height:inherit;text-overflow:ellipsis;vertical-align:bottom}
is missing
overflow:hidden;
This fix does truncate the text and thus displays the spreadsheet in a cleaner way, although I have not been able to display the ellipsis character (...).

Also, may be it could be useful to switch between displaying the full text or just its ellipsis version, in a given cell. It is only needed to handle the cell onClick event to adjust the row height by changing the value of x-p display property:
x-p {display:block;}
for
x-p {display:inline}

If you need more details, please let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions