Hide location when in same instance

This commit is contained in:
Natsumi
2025-11-02 00:44:05 +11:00
parent bdf6a76597
commit d00ddf3f5b
2 changed files with 9 additions and 3 deletions

View File

@@ -14,7 +14,7 @@
</div>
</template>
<div style="display: flex; justify-content: space-between; align-items: center">
<span class="friend-view__settings-label">Show Same Instance</span>
<span class="friend-view__settings-label">Separate Same Instance</span>
<el-switch v-model="showSameInstance" />
</div>
<div style="display: flex; justify-content: space-between; align-items: center">
@@ -93,7 +93,8 @@
v-for="friend in group.friends"
:key="friend.id ?? friend.userId ?? friend.displayName"
:friend="friend"
:card-scale="cardScale" />
:card-scale="cardScale"
:display-instance-info="false" />
</div>
</section>
</div>
@@ -735,6 +736,7 @@
align-items: center;
justify-content: space-between;
padding: 4px 2px;
margin: 5px 10px;
font-weight: 600;
font-size: 13px;
color: rgba(15, 23, 42, 0.75);

View File

@@ -19,7 +19,7 @@
<i v-if="friend.ref?.statusDescription" class="ri-pencil-line" style="opacity: 0.7"></i>
{{ friend.ref?.statusDescription || '&nbsp;' }}
</div>
<div class="friend-card__world" :title="friend.worldName">
<div v-if="displayInstanceInfo" class="friend-card__world" :title="friend.worldName">
<Location
class="friend-card__location"
:location="friend.ref?.location"
@@ -46,6 +46,10 @@
cardScale: {
type: Number,
default: 1
},
displayInstanceInfo: {
type: Boolean,
default: true
}
});