Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

Commit e51bc6e

Browse files
committed
Add icon for file
1 parent a9f8e24 commit e51bc6e

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

lib/view/chat/font.css

100644100755
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/view/chat/message.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
</div>
8181
{{else}}
8282
<div onclick="wey.openLink('{{downloadUrl}}'); return false" class="file">
83+
<div class="icon"><i class="icon-doc"></i></div>
8384
<div class="name">{{name}}</div>
8485
<div class="type">{{readableSize}} {{typeName}}</div>
8586
</div>

lib/view/chat/page.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
.file {
293293
max-width: 600px;
294294
margin: 4px 0 4px 0;
295-
padding: 10px;
295+
padding: 11px 0 10px 10px;
296296
border: 1px solid #E8E8E8;
297297
border-radius: 6px;
298298
background-color: white;
@@ -309,6 +309,13 @@
309309
font-size: 12px;
310310
color: #717274;
311311
}
312+
.file .icon {
313+
float: left;
314+
font-size: 32px;
315+
height: 100%;
316+
margin: -7px 8px 0 0;
317+
color: #2D9EE0;
318+
}
312319

313320
.reactions {
314321
margin-bottom: 4px;

0 commit comments

Comments
 (0)