diff --git a/app/font/Wire.ttf b/app/font/Wire.ttf old mode 100644 new mode 100755 index fc4995be2cf..d66dec65204 Binary files a/app/font/Wire.ttf and b/app/font/Wire.ttf differ diff --git a/app/page/template/_dist/app.htm b/app/page/template/_dist/app.htm index 08c9ff63b20..1546bbd44f6 100644 --- a/app/page/template/_dist/app.htm +++ b/app/page/template/_dist/app.htm @@ -240,7 +240,6 @@ - diff --git a/app/page/template/content/collection-details.htm b/app/page/template/content/collection-details.htm index 81a3d072f8a..b206e3addd1 100644 --- a/app/page/template/content/collection-details.htm +++ b/app/page/template/content/collection-details.htm @@ -1,57 +1,36 @@
-
- - - Pictures in - - +
-
- -
+
+
- - - - - +
- - + + + + + + + + + - - - - - - - - - - - - - - - - - - +
-
diff --git a/app/page/template/content/collection.htm b/app/page/template/content/collection.htm index 76602cb2152..2e7d112c88c 100644 --- a/app/page/template/content/collection.htm +++ b/app/page/template/content/collection.htm @@ -1,119 +1,80 @@
- - - -
+
- +
-
- - - - -
-
- - Pictures - - - -
-
- - - -
-
- - - -
-
- - Links - - - -
-
- - - -
-
+
+
+ + + +
+
+ + + + + +
+
+ + + +
+
+ + + +
+
+ + + + + +
+
+ + + +
+
+ + + +
+
+ + + + + +
+
+ + + +
+
+ - -
-
- - Videos - - - -
-
- - - -
-
+ +
+
+
No items
+
- -
-
- - Audio messages - - - -
-
- - - -
-
- - - -
-
- - files - - - -
-
- - - -
-
- - - - - - -
-
-
No items
-
- - - +
diff --git a/app/page/template/content/conversation/message-list.htm b/app/page/template/content/conversation/message-list.htm index e09ed904f1d..0aa5f4906dd 100644 --- a/app/page/template/content/conversation/message-list.htm +++ b/app/page/template/content/conversation/message-list.htm @@ -6,7 +6,7 @@
diff --git a/app/page/template/detail-view.htm b/app/page/template/detail-view.htm index 5b7b5c03d67..f3f0d3b57e9 100644 --- a/app/page/template/detail-view.htm +++ b/app/page/template/detail-view.htm @@ -1,6 +1,42 @@ diff --git a/app/page/template/partials/template-message.htm b/app/page/template/partials/template-message.htm index a3a5a5ad353..0e6723482c1 100644 --- a/app/page/template/partials/template-message.htm +++ b/app/page/template/partials/template-message.htm @@ -62,11 +62,11 @@ -
+
@@ -92,7 +92,7 @@
- + diff --git a/app/script/components/asset/assetHeader.coffee b/app/script/components/asset/assetHeader.coffee index 06725cc6f47..62138b7f7a3 100644 --- a/app/script/components/asset/assetHeader.coffee +++ b/app/script/components/asset/assetHeader.coffee @@ -28,6 +28,6 @@ class z.components.AssetHeader ko.components.register 'asset-header', viewModel: z.components.AssetHeader template: """ - + """ diff --git a/app/script/components/asset/linkPreviewAsset.coffee b/app/script/components/asset/linkPreviewAsset.coffee index ce56e8983f5..080bfaf9bcd 100644 --- a/app/script/components/asset/linkPreviewAsset.coffee +++ b/app/script/components/asset/linkPreviewAsset.coffee @@ -27,11 +27,15 @@ class z.components.LinkPreviewAssetComponent @option params [z.entity.LinkPreview] preview ### constructor: (params, component_info) -> - @preview = ko.unwrap params.preview - @viewport_changed = params.viewport_changed + + @message_et = ko.unwrap params.message + @header = params.header or false + + @preview = @message_et.get_first_asset().previews()[0] @element = component_info.element @url = @preview.original_url - @expired = params.expired or ko.observable false + + @element.addEventListener 'click', @on_link_preview_click on_link_preview_click: => z.util.safe_window_open @url @@ -44,24 +48,33 @@ ko.components.register 'link-preview-asset', viewModel: createViewModel: (params, component_info) -> return new z.components.LinkPreviewAssetComponent params, component_info template: """ - - -