Blastitt/DailyXKCD

Don't let altText expand over the whole screen

Opened this issue · 1 comments

It would be great if the altText did not expand over the whole width of the screen when there is a long text (I'm using position: "bottom_right"). Best to make it the same width as the comic and have it expand height, or maybe an ellipsis if it gets way too long.

I tried to hack the css for this but couldn't find a clean way to keep the auto-expanding width while making the text the same width as the image. Maybe someone else has an idea.

Thanks for opening this issue. Can you post a picture of the altText overflow bug in action? As a temp fix have you tried using the CSS overflow property on the altText ? You can add your custom CSS class to the altTextFont config option (e.g. altTextFont: 'xsmall dimmed text-overflow') until a more permanent, specific option is added.