knowledgepixels / nanodash

A web client to browse and publish nanopublications.
GNU Affero General Public License v3.0
26 stars 2 forks source link

Improve display of subject/predicate/object elements #114

Closed tkuhn closed 3 months ago

tkuhn commented 3 months ago

Try to find a way to improve the display of the subject/predicate/object elements by better aligning them where appropriate.

E.g. like this: image

tkuhn commented 3 months ago

I think I can do something with JavaScript: Read out the width values, and set them to larger values to align the elements. This would also allow for exceptions, e.g. ignoring very wide elements and let them out of the alignment...

tkuhn commented 3 months ago

Almost done with 9552a22bb2e03e8d4141d68ec8763d1d4f9d7ce3.

image

Alignment is done where the boxes aren't too wide, and skipped where wider boxes are involved. This can be adjusted if needed.

Just realizing that it stopped working on the feed (only on individual nanopub page)...

And some further small issues in the alignment too.

tkuhn commented 3 months ago

Also works on feed/search display with f2bdd7cb5bc0896aae2bdcd4aa14775095a0ed4f.