Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Use box buttons for download and delete.
Aman Agrawal621ae91c70c1
diff --git a/web/styles/settings.css b/web/styles/settings.cssindex 80f795fefbd..dea4e0fe8a8 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -566,15 +566,24 @@ input[type="checkbox"] {}}-.remove-attachment {- margin-right: 5px !important;- font-size: 1.1em !important;- padding-left: 0 !important;+.edit-attachment-buttons {+ display: inline-block;+ vertical-align: middle;+ height: 32px;}-#download_attachment {- padding-left: 0;- border-left: 0;+.edit-attachment-buttons .remove-attachment {+ margin-left: 5px;+}++.edit-attachment-buttons #download_attachment {+ display: block;+ padding: 6px 9px;+ text-decoration: none;++ &:hover {+ color: hsl(156deg 41% 40%);+ }}.remove-alert-word {diff --git a/web/templates/settings/uploaded_files_list.hbs b/web/templates/settings/uploaded_files_list.hbsindex a345bb1c9d7..9ca0e2168cd 100644--- a/web/templates/settings/uploaded_files_list.hbs+++ b/web/templates/settings/uploaded_files_list.hbs@@ -20,14 +20,14 @@<td class="upload-size" >{{ size_str }}</td><td class="actions"><span class="edit-attachment-buttons">- <a type="submit" href="/user_uploads/{{path_id}}" class="btn no-style" title="{{t 'Download file' }}" id="download_attachment" download>+ <a type="submit" href="/user_uploads/{{path_id}}" class="button rounded small sea-green tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Download' }}" id="download_attachment" download><i class="fa fa-download sea-green" aria-hidden="true"></i></a></span><span class="edit-attachment-buttons"><button type="submit"- class="button small no-style remove-attachment"- title="{{t 'Delete file' }}" data-attachment="{{id}}">+ class="button rounded small delete btn-danger remove-attachment tippy-zulip-delayed-tooltip"+ data-tippy-content="{{t 'Delete' }}" data-attachment="{{id}}"><i class="fa fa-trash-o" aria-hidden="true"></i></button></span>