mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Update all client dependencies and cdn versions, workaround sequence-diagram svg to be resizable
This commit is contained in:
parent
5d03109827
commit
71f61b7f84
26 changed files with 82 additions and 2328 deletions
|
@ -258,6 +258,9 @@ function finishView(view) {
|
|||
|
||||
$ele.addClass('sequence-diagram');
|
||||
$value.children().unwrap().unwrap();
|
||||
var svg = $ele.find('> svg');
|
||||
svg[0].setAttribute('viewBox', '0 0 ' + svg.attr('width') + ' ' + svg.attr('height'));
|
||||
svg[0].setAttribute('preserveAspectRatio', 'xMidYMid meet');
|
||||
} catch (err) {
|
||||
console.warn(err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue