dynamiccookies / Radarr-Assistant

An interface that ties into Radarr's API to allow searching for movies, verifying movies currently in the Radarr library, and adding movies to Radarr's queue.
MIT License
0 stars 0 forks source link

Enable user to view entire plot #31

Closed dynamiccookies closed 2 years ago

dynamiccookies commented 2 years ago

Currently, the plot is being truncated based on the size of the movie container and the amount of space other objects are taking up - see #17 : https://github.com/dynamiccookies/Radarr-Assistant/blob/4a2ea8175ec84d6e4fde7d8864d1def84fa01424/script.js#L199 https://github.com/dynamiccookies/Radarr-Assistant/blob/4a2ea8175ec84d6e4fde7d8864d1def84fa01424/style.css#L95-L103

But it would be nice to allow the user to be able to see the full plot, including the truncated portion.

My first thought thought was to just put the entire plot in the title='' attribute, but that is also being cut off. My second thought is to allow them to click the plot and an alert popup will display the entire text. Unfortunately, my first stab at it isn't working, although I don't know why:

$('.plot').click(function(){
      alert($(this).text());
});