Fixed images not showing correctly, by updating packages, removing handlebars,

and changing image attachment view big image popup from swipebox to lightbox.

Thanks to xet7 !

Fixes #4507
This commit is contained in:
Lauri Ojansivu 2022-05-21 03:42:29 +03:00
parent b4d46f3016
commit 990477e9c6
7 changed files with 5879 additions and 915 deletions

View file

@ -19,7 +19,7 @@ template(name="attachmentsGalery")
.attachments-galery
each attachments
.attachment-item
a.attachment-thumbnail.swipebox(href="{{link}}" title="{{name}}")
a.attachment-thumbnail(href="{{link}}" title="{{name}}" data-lightbox="{{name}}")
if link
if isImage
img.attachment-thumbnail-img(src="{{link}}")

View file

@ -1,9 +1,6 @@
* {
-webkit-box-sizing: unset;
box-sizing: unset;
}
/* Fixed missing 'import nib' stylesheet reset and extra li bullet points
* https://github.com/wekan/wekan/issues/4512#issuecomment-1129347536
* https://github.com/stylus/nib/blob/master/lib/nib/reset.styl
*/
a, abbr, acronym, address, applet, big, blockquote, body, caption, cite,
code, dd, del, dfn, div, dl, dt, em, fieldset, form, h1, h2, h3, h4, h5,
@ -19,6 +16,51 @@ table, tbody, td, tfoot, th, thread, tr, tt, ul, var {
font-size: 100%;
vertical-align: baseline;
}
ol, ul {
list-style: none;
}
a img {
border: none;
}
/* reset body */
body {
line-height: 1;
color: black;
background: white;
}
/* reset table cell */
table {
border-collapse: separate;
border-spacing: 0;
vertical-align: middle;
}
caption, td, th {
text-align: left;
font-weight: normal;
vertical-align: middle;
}
/* reset html5 */
article, aside, canvas, details, figcaption,
figure, footer, header, hgroup, menu, nav,
section, summary, main {
display: block;
}
audio, canvas, video {
display: inline-block;
*display: inline;
*zoom: 1;
}
audio:not([controls]),[hidden] {
display: none;
}
/* End of reset css */
* {
-webkit-box-sizing: unset;
box-sizing: unset;
}
.note-popover .popover-content .note-color-palette div .note-color-btn,
.panel-heading.note-toolbar .note-color-palette div .note-color-btn {
background: none;