From 5f157efcd988b575718ede167bcaaf9bba512a47 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Thu, 25 Aug 2022 15:41:26 +0200 Subject: [PATCH] Added avatars to Audit log refs. https://github.com/TryGhost/Toolbox/issues/356 - the list needed avatars and action icons to be able to easily scan who's doing a lot of actions and what actions have been done at the same time --- .../components/settings/audit-log/table.hbs | 6 +++- ghost/admin/app/styles/layouts/settings.css | 36 ++++++++++++++----- 2 files changed, 33 insertions(+), 9 deletions(-) diff --git a/ghost/admin/app/components/settings/audit-log/table.hbs b/ghost/admin/app/components/settings/audit-log/table.hbs index a56cbf7904..f1390134d1 100644 --- a/ghost/admin/app/components/settings/audit-log/table.hbs +++ b/ghost/admin/app/components/settings/audit-log/table.hbs @@ -10,7 +10,11 @@
-
{{svg-jar ev.actionIcon}}
+ + +
{{svg-jar ev.actionIcon}}
+
+ {{!-- --}}
diff --git a/ghost/admin/app/styles/layouts/settings.css b/ghost/admin/app/styles/layouts/settings.css index b9d676ddfa..b995421b6d 100644 --- a/ghost/admin/app/styles/layouts/settings.css +++ b/ghost/admin/app/styles/layouts/settings.css @@ -2896,12 +2896,6 @@ p.theme-validation-details { color: var(--lightgrey); } -.gh-audit-log-icon { - width: 18px; - height: 18px; - margin: 0 20px 0 4px; -} - .gh-audit-log-icon svg path { fill: var(--midgrey-l1); } @@ -2940,8 +2934,34 @@ p.theme-validation-details { } .gh-audit-log-table .user-list-item-figure { - height: 30px; - width: 30px; + position: relative; + height: 34px; + width: 34px; + margin-left: 0; + margin-right: 16px; +} + +.gh-audit-log-icon { + position: absolute; + display: flex; + align-items: center; + justify-content: center; + right: -7px; + bottom: -7px; + background: var(--white); + width: 22px; + height: 22px; + border-radius: 999px; + box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.12); +} + +.gh-audit-log-icon svg { + width: 13px; + height: 13px; +} + +.gh-audit-log-icon svg path { + fill: var(--midgrey-l1); } @media (max-width: 620px) {