fix Avatar on instanceName page
This commit is contained in:
parent
fee954bf27
commit
d0270991d7
|
@ -182,7 +182,7 @@
|
||||||
<script>
|
<script>
|
||||||
import IconButton from './IconButton.html'
|
import IconButton from './IconButton.html'
|
||||||
import ExternalLink from './ExternalLink.html'
|
import ExternalLink from './ExternalLink.html'
|
||||||
import Avatar from './Status/Avatar.html'
|
import Avatar from './Avatar.html'
|
||||||
import { store } from '../_store/store'
|
import { store } from '../_store/store'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import { imgLoadError } from '../../_utils/events'
|
import { imgLoadError } from '../_utils/events'
|
||||||
import { store } from '../../_store/store'
|
import { store } from '../_store/store'
|
||||||
import NonAutoplayImg from '../NonAutoplayImg.html'
|
import NonAutoplayImg from './NonAutoplayImg.html'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
events: {
|
events: {
|
|
@ -43,7 +43,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import Avatar from '../status/Avatar.html'
|
import Avatar from '../Avatar.html'
|
||||||
import SearchResult from './SearchResult.html'
|
import SearchResult from './SearchResult.html'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import Avatar from './Avatar.html'
|
import Avatar from '../Avatar.html'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Avatar
|
Avatar
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
{{#if verifyCredentials}}
|
{{#if verifyCredentials}}
|
||||||
<h2>Logged in as:</h2>
|
<h2>Logged in as:</h2>
|
||||||
<div class="acct-current-user">
|
<div class="acct-current-user">
|
||||||
<img alt="Profile picture for {{'@' + verifyCredentials.acct}}"
|
<Avatar account="{{verifyCredentials}}" className="acct-avatar" size="big"/>
|
||||||
class="acct-avatar" src="{{verifyCredentials.avatar}}" />
|
|
||||||
<ExternalLink class="acct-handle"
|
<ExternalLink class="acct-handle"
|
||||||
href="{{verifyCredentials.url}}">
|
href="{{verifyCredentials.url}}">
|
||||||
{{'@' + verifyCredentials.acct}}
|
{{'@' + verifyCredentials.acct}}
|
||||||
|
@ -53,12 +52,11 @@
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"avatar handle"
|
"avatar handle"
|
||||||
"avatar display-name";
|
"avatar display-name";
|
||||||
grid-gap: 20px;
|
grid-template-columns: min-content 1fr;
|
||||||
|
grid-column-gap: 20px;
|
||||||
|
grid-row-gap: 10px;
|
||||||
}
|
}
|
||||||
.acct-avatar {
|
:global(.acct-avatar) {
|
||||||
width: 64px;
|
|
||||||
height: 64px;
|
|
||||||
border-radius: 4px;
|
|
||||||
grid-area: avatar;
|
grid-area: avatar;
|
||||||
}
|
}
|
||||||
:global(.acct-handle) {
|
:global(.acct-handle) {
|
||||||
|
@ -100,6 +98,7 @@
|
||||||
import Layout from '../../_components/Layout.html'
|
import Layout from '../../_components/Layout.html'
|
||||||
import SettingsLayout from '../_components/SettingsLayout.html'
|
import SettingsLayout from '../_components/SettingsLayout.html'
|
||||||
import ExternalLink from '../../_components/ExternalLink.html'
|
import ExternalLink from '../../_components/ExternalLink.html'
|
||||||
|
import Avatar from '../../_components/Avatar.html'
|
||||||
import { showConfirmationDialog } from '../../_components/dialog/showConfirmationDialog'
|
import { showConfirmationDialog } from '../../_components/dialog/showConfirmationDialog'
|
||||||
import {
|
import {
|
||||||
changeTheme,
|
changeTheme,
|
||||||
|
@ -113,7 +112,8 @@
|
||||||
components: {
|
components: {
|
||||||
Layout,
|
Layout,
|
||||||
SettingsLayout,
|
SettingsLayout,
|
||||||
ExternalLink
|
ExternalLink,
|
||||||
|
Avatar
|
||||||
},
|
},
|
||||||
store: () => store,
|
store: () => store,
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
|
Loading…
Reference in a new issue