1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 10:26:17 +00:00

[SVG file view] rewrote it with react (#3125)

This commit is contained in:
llj
2019-03-18 14:22:51 +08:00
committed by Daniel Pan
parent 9e968a73e7
commit 01a48d7268
6 changed files with 161 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
.svg-file-view {
position: relative;
text-align: center;
}
.svg-file-view:before {
content: ' ';
display: inline-block;
vertical-align: middle;
height: 100%;
font-size: 0;
line-height: 0;
}
#svg-view {
max-width: 100%;
max-height: 100%;
}