Allow line breaks in popover links and fix positioning of preview popovers#698
Allow line breaks in popover links and fix positioning of preview popovers#698SteffenAstheimer wants to merge 2 commits into
Conversation
.preview link text|
I added some javascript to solve the issue described in #142. If the I introduced a helper function that creates an invisible span as popover anchor for the individual line fragment that was clicked, which is deduced by the position of the cursor. WeGA-WebApp/resources/js/init.js Line 543 in 27adbc2 WeGA-WebApp/resources/js/init.js Lines 516 to 540 in 27adbc2 WeGA-WebApp/resources/js/init.js Lines 488 to 514 in 27adbc2 The only real issue I could find, is that each line fragment is treated as its own element in such a way, that you can open multiple popovers for the same link. But I could live with that.
|
27adbc2 to
64510a4
Compare

This should fix the problem of non wrapping link text, described in #697.