Website Summary Files Commits Branches @commit @diff @stats
path: root / src / app / components / post-attachment / post-attachment.component.html
diff options
context:
space:
mode:
Commit301e3932b64172b3f9cf055287fdfdb4a89620af (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-02-24 18:56:32 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-02-24 18:56:32 +0200
Filesff504329477476665be6d44a43c3171ba71d38ee /src/app/components/post-attachment/post-attachment.component.html
DevHive-Angular-301e3932b64172b3f9cf055287fdfdb4a89620af.tar
DevHive-Angular-301e3932b64172b3f9cf055287fdfdb4a89620af.tar.gz
DevHive-Angular-301e3932b64172b3f9cf055287fdfdb4a89620af.zip
Parent2b5b2f2449317b8aebd2d8962a930bf454d100fb (diff)
Improved semantics and simplified some HTML of comments and posts
1 files changed, 8 insertions, 10 deletions
-rw-r--r--src/app/components/post-attachment/post-attachment.component.html18
diff --git a/src/app/components/post-attachment/post-attachment.component.html b/src/app/components/post-attachment/post-attachment.component.html
index 4d381d1..401068c 100644
--- a/src/app/components/post-attachment/post-attachment.component.html
+++ b/src/app/components/post-attachment/post-attachment.component.html
@@ -1,13 +1,11 @@
-<div class="attachment">
- <div class="clickable" (click)="toggleShowFull()">
- <div class="attachment-name">
- {{ fileName }}
- </div>
- <div class="attachment-type">
- {{ fileType }}
- </div>
- </div>
-</div>
+<figure class="attachment" (click)="toggleShowFull()">
+ <summary class="attachment-name">
+ {{ fileName }}
+ </summary>
+ <summary class="attachment-type">
+ {{ fileType }}
+ </summary>
+</figure>
<div class="show-full-attachment" *ngIf="showFull" (click)="toggleShowFull()">
<img class="attachment-img" *ngIf="isImage" src="{{paramURL}}">