Skip to content

Long mutation titles cause timestamp to wrap and become hidden within list #1090

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

Closed
paulyoung5 opened this issue Oct 24, 2019 · 0 comments
Closed

Comments

@paulyoung5
Copy link

paulyoung5 commented Oct 24, 2019

Version

5.1.1

Browser and OS info

Firefox 69 / macOS Catalina

Steps to reproduce

Demo

https://cdpn.io/paulyoung5/debug/GRRmEYm
(see code here: https://codepen.io/paulyoung5/pen/GRRmEYm)

General repro steps

  • Open devtools at about 900px wide, navigate to Vue DevTools extension and then the Vuex tab
  • Commit a mutation with a really long title
    • Note that this could be a namespaced mutation, e.g. onlineShop/shoppingCart/REMOVE_ITEM_FROM_CART
    • ..or simply be a long mutation title e.g. MY_REALLY_LONG_MUTATION_NAME_GOES HERE
  • Observe that a new row has been created within the list of committed mutations

What is expected?

Long mutation titles or titles otherwise too long to display within the UI should be truncated with some ellipsis, to prevent wrapping and obscuring content.

Reference: https://css-tricks.com/snippets/css/truncate-string-with-ellipsis

What is actually happening?

Mutation name forces timestamp to wrap onto a next line, obscuring the timestamp as a result

image

@Akryum Akryum closed this as completed in 30f1516 Oct 30, 2019
sp1ker pushed a commit to sp1ker/vue-devtools that referenced this issue Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant