From 7cf29b9d3e35ca4f4c6abb03c9aec876bd99a918 Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 7 Sep 2020 15:50:40 +0800 Subject: [PATCH] Fix image preview problem.(Add zoom-in and zoom-out to larger image.) --- app/assets/images/archive/zoomin.cur | Bin 0 -> 4286 bytes app/assets/images/archive/zoomout.cur | Bin 0 -> 4286 bytes app/views/archives/download_file.html.erb | 125 ++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 app/assets/images/archive/zoomin.cur create mode 100644 app/assets/images/archive/zoomout.cur diff --git a/app/assets/images/archive/zoomin.cur b/app/assets/images/archive/zoomin.cur new file mode 100644 index 0000000000000000000000000000000000000000..8ec1f766775d204ae04098a577837fa399868429 GIT binary patch literal 4286 zcmeH}F>e|{5QX<-B&Q=15-A}~M2FI(NpUC9(Ig;6QQSC1(xjpZ6%rIlLFHe7D3GO; zG!`WkxWT=lBI(k)u|p#8j&ZzOSV97d9h_vHu>9L!!n!vcU#*3j(zjI8S{gPF@K5q zU!fD|3_695p-<2gNG&MlQP>_F_aHxa6N$v{Y&JW~WHNtZvDi%e(H=o>tZRQfuA{I& z(;qm~N~I#h;ZT;X)9FY)pTC-O?e#>BxzEn!av{XJN-&#}x_%<-Z6E$2`XEob~))&p~;1TPl^5{Urihr#=V&CoY6F^)_S7t$jDu z!9BFk;G+lmHI;RZwT0)KXN-A1&$av9chIu=E@3@aj@>fPnQKv=H>TgoSkGTUtZRpm z2ZcFfnD+lzKyH0U-x0Jgat%%6B9oNJg)6o9Rs6w`sc~dt_T<9sLwoYWmxDG)9CtHz PV&a$!SH>0TiEn=aTAo|4 literal 0 HcmV?d00001 diff --git a/app/assets/images/archive/zoomout.cur b/app/assets/images/archive/zoomout.cur new file mode 100644 index 0000000000000000000000000000000000000000..8335144b178f74c2d768bf9eaa8ab2fa2e195f40 GIT binary patch literal 4286 zcmeH}F-#&s6ozLbiPvdDf~8(_p(BRG#==eLXgo+R7j3jq3M(3^NVL#`%9?^$5EDxp zLrZ}T_Ckerwl*pn@cI8MV>Y-^m@#O`+fxq9xC6;V~{M|%YQ^Yy*?=-aS&=?|Q4 zKA)FnvnhjCtyU$OOy2jo{&;M2?y(bzM6ca$4`Sc-%jL2-jzi{iKNg#PyYxZ!JJ1IM z%tfDliPpwy%=s|;9t@{YDCiir4Fljg7d~%Oi$o%K@X;{j^Nt0cwPEAQ<#IX)zYStI z;~n#};_pee3!7EYmUF=IpkZ|>nA9O)`YI%-O8)ig9E*Pa}-LE^mExg9lwwQ!|Y IL~7#M3xh?NBme*a literal 0 HcmV?d00001 diff --git a/app/views/archives/download_file.html.erb b/app/views/archives/download_file.html.erb index 62dc9fd..d17299b 100644 --- a/app/views/archives/download_file.html.erb +++ b/app/views/archives/download_file.html.erb @@ -16,6 +16,131 @@ <% else %> <%=@filename%> + <% end %>