From ad1c9cea663b4b552d86652900a7b4d9575365f2 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 27 Jan 2018 18:41:41 -0800 Subject: [PATCH] tweak style, refactor --- routes/_components/DynamicPageBanner.html | 2 +- routes/accounts/[accountId].html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/routes/_components/DynamicPageBanner.html b/routes/_components/DynamicPageBanner.html index bed32f20..c71df2cb 100644 --- a/routes/_components/DynamicPageBanner.html +++ b/routes/_components/DynamicPageBanner.html @@ -9,7 +9,7 @@ display: flex; align-items: center; justify-content: space-between; - margin: 0 20px 20px; + margin: 20px 20px 20px; } h1.dynamic-page-title { margin: 0; diff --git a/routes/accounts/[accountId].html b/routes/accounts/[accountId].html index a99b4de0..beeea377 100644 --- a/routes/accounts/[accountId].html +++ b/routes/accounts/[accountId].html @@ -41,16 +41,16 @@ this.set({cachedAccount: account}) }) getAccount(currentInstance, accessToken, accountId).then(account => { - this.set({account: account}) + this.set({remoteAccount: account}) }) }, store: () => store, computed: { - remoteProfileName: (account) => { - return account && ('@' + account.acct) + remoteProfileName: (remoteAccount) => { + return remoteAccount && ('@' + remoteAccount.acct) }, - remoteShortProfileName: (account) => { - return account && ('@' + account.username) + remoteShortProfileName: (remoteAccount) => { + return remoteAccount && ('@' + remoteAccount.username) }, cachedProfileName: (cachedAccount) => { return cachedAccount && ('@' + cachedAccount.acct)