diff --git a/package-lock.json b/package-lock.json index 8593822..5ef5957 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3344,6 +3344,27 @@ "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=" }, + "intl-messageformat": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-2.2.0.tgz", + "integrity": "sha1-NFvNRt5jC3aDMwwuUhd/9eq0hPw=", + "requires": { + "intl-messageformat-parser": "1.4.0" + } + }, + "intl-messageformat-parser": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/intl-messageformat-parser/-/intl-messageformat-parser-1.4.0.tgz", + "integrity": "sha1-tD1FqXRoytvkQzHXS7Ho3qRPwHU=" + }, + "intl-relativeformat": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/intl-relativeformat/-/intl-relativeformat-2.1.0.tgz", + "integrity": "sha1-AQ8RBYAiUfQKxH0OPhogE0iiVd8=", + "requires": { + "intl-messageformat": "2.2.0" + } + }, "invert-kv": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", diff --git a/package.json b/package.json index 29c2ffe..1cdd4b1 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "font-awesome-svg-png": "^1.2.2", "glob": "^7.1.2", "idb": "^2.0.4", + "intl-relativeformat": "^2.1.0", "lodash": "^4.17.4", "node-fetch": "^1.7.3", "node-sass": "^4.7.2", diff --git a/routes/_components/Avatar.html b/routes/_components/Avatar.html index 1f966fc..2cbb414 100644 --- a/routes/_components/Avatar.html +++ b/routes/_components/Avatar.html @@ -3,7 +3,7 @@ img { width: 48px; height: 48px; - margin: 10px auto; + margin: 0 auto; border-radius: 4px; } diff --git a/routes/_components/Status.html b/routes/_components/Status.html index 8e77ac7..4e9f1f2 100644 --- a/routes/_components/Status.html +++ b/routes/_components/Status.html @@ -1,14 +1,32 @@ -
+
{{#if status.reblog}} -
- {{status.account.username}} boosted + {{/if}} +
{{{status.content}}}
-