xfbs / diff.rs

Web application to render a diff between Rust crate versions. Implemented in Yew, runs fully in the browser as WebAssembly.
https://diff.rs
MIT License
106 stars 11 forks source link

Long versions cause linewrap in search results #80

Open xfbs opened 1 month ago

xfbs commented 1 month ago

See:

Screenshot From 2024-10-31 00-24-59

I think we should add the CSS property that will make them show as v0.1.0-as... (with the dots), and a hover component that shows the full version.

Alternatively, we could also implement it such that we get the crate name (in full) and then the version on the next line.

HWienhold commented 1 month ago

with regard to #38 i dont think yet another line makes sense. Besides i think this does not happen for most crates and mostly onmobile. I d just go with the hover solution - maybe give the crate name more max space than version (does the rc really matter for the overview tile? - version selection is on the next page anyway)