From 7931a9a89d25f81aad41631145aa04ea9349d298 Mon Sep 17 00:00:00 2001 From: Mary Kate Date: Fri, 7 Aug 2020 18:10:13 -0500 Subject: [PATCH] code review --- app/soapbox/features/ui/components/user_panel.js | 3 ++- app/styles/components/drawer.scss | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/soapbox/features/ui/components/user_panel.js b/app/soapbox/features/ui/components/user_panel.js index ed34e51ea..1ba4e3efc 100644 --- a/app/soapbox/features/ui/components/user_panel.js +++ b/app/soapbox/features/ui/components/user_panel.js @@ -11,6 +11,7 @@ import { shortNumberFormat } from 'soapbox/utils/numbers'; import { acctFull } from 'soapbox/utils/accounts'; import StillImage from 'soapbox/components/still_image'; import VerificationBadge from 'soapbox/components/verification_badge'; +import { List as ImmutableList } from 'immutable'; class UserPanel extends ImmutablePureComponent { @@ -25,7 +26,7 @@ class UserPanel extends ImmutablePureComponent { if (!account) return null; const displayNameHtml = { __html: account.get('display_name_html') }; const acct = account.get('acct').indexOf('@') === -1 && domain ? `${account.get('acct')}@${domain}` : account.get('acct'); - const verified = account.get('pleroma').get('tags').includes('verified'); + const verified = account.getIn(['pleroma', 'tags'], ImmutableList()).includes('verified'); return (
diff --git a/app/styles/components/drawer.scss b/app/styles/components/drawer.scss index 7dc5a1a10..39e936158 100644 --- a/app/styles/components/drawer.scss +++ b/app/styles/components/drawer.scss @@ -20,7 +20,7 @@ .column, .drawer { flex: 1 1 100%; - overflow: hidden; + overflow: visible; } .drawer__pager {