From 7f982a07781f09756d852f423bba37dc11abf2a5 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 25 Jun 2017 20:03:26 -0700 Subject: minor usability enhancements with the connections list - label the edit icon so it's more obvious; the intuitive action is to click the photo or name which isn't what we usually want. Also move the Delete button over just a bit more so it's harder to accidentally click on small screens with big thumbs. --- Zotlabs/Module/Connections.php | 1 + view/theme/redbasic/css/style.css | 4 ++++ view/tpl/connection_template.tpl | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Zotlabs/Module/Connections.php b/Zotlabs/Module/Connections.php index 60b798c13..b3c5e8ee9 100644 --- a/Zotlabs/Module/Connections.php +++ b/Zotlabs/Module/Connections.php @@ -258,6 +258,7 @@ class Connections extends \Zotlabs\Web\Controller { $contacts[] = array( 'img_hover' => sprintf( t('%1$s [%2$s]'),$rr['xchan_name'],$rr['xchan_url']), 'edit_hover' => t('Edit connection'), + 'edit' => t('Edit'), 'delete_hover' => t('Delete connection'), 'id' => $rr['abook_id'], 'thumb' => $rr['xchan_photo_m'], diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 07dfd938d..0dee7dead 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -427,6 +427,10 @@ footer { right: 5px; } +.contact-delete-btn { + margin-right: 32px; +} + #contact-block { width: 100%; } diff --git a/view/tpl/connection_template.tpl b/view/tpl/connection_template.tpl index 16915abda..8e49c9e27 100755 --- a/view/tpl/connection_template.tpl +++ b/view/tpl/connection_template.tpl @@ -8,8 +8,8 @@ {{$contact.ignore}} {{/if}} - {{$contact.delete}} - + {{$contact.delete}} + {{$contact.edit}} {{if $contact.approve}} {{/if}} -- cgit v1.2.3