diff --git a/src/components/ProfileListItem.vue b/src/components/ProfileListItem.vue
new file mode 100644
index 0000000..dc2b5a6
--- /dev/null
+++ b/src/components/ProfileListItem.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
{{ profile.display_name || profile.username }}
+
@{{ profile.acct }}
+
+
+
+
+
+
+
diff --git a/src/views/SearchResultList.vue b/src/views/SearchResultList.vue
index 33a434e..0216893 100644
--- a/src/views/SearchResultList.vue
+++ b/src/views/SearchResultList.vue
@@ -10,13 +10,7 @@
-
-
-
-
{{ profile.display_name || profile.username }}
-
@{{ profile.acct }}
-
-
+
@@ -33,6 +27,7 @@ import { Profile } from "@/api/users"
import Avatar from "@/components/Avatar.vue"
import Loader from "@/components/Loader.vue"
import PostComponent from "@/components/Post.vue"
+import ProfileListItem from "@/components/ProfileListItem.vue"
import Sidebar from "@/components/Sidebar.vue"
import { useCurrentUser } from "@/store/user"
@@ -41,6 +36,7 @@ import { useCurrentUser } from "@/store/user"
Avatar,
Loader,
Post: PostComponent,
+ ProfileListItem,
Sidebar,
},
})
@@ -105,30 +101,9 @@ export default class SearchResultList extends Vue {
.search-result {
border-bottom: 1px solid $separator-color;
- padding: $block-inner-padding;
&:last-child {
border-bottom: none;
}
-
- .profile {
- align-items: center;
- display: flex;
- flex-direction: row;
-
- .avatar {
- height: $avatar-size;
- margin-right: $block-inner-padding;
- width: $avatar-size;
- }
-
- .display-name {
- color: $text-color;
- }
-
- .username {
- color: $secondary-text-color;
- }
- }
}