Fixed #184: small UI glitches/bugs in federation tabs
This commit is contained in:
parent
f2d20e1bf7
commit
71bd0961af
|
@ -0,0 +1 @@
|
||||||
|
Fixed small UI glitches/bugs in federation tabs (#184)
|
|
@ -97,6 +97,12 @@ html, body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ellipsis {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.ui.small.text.container {
|
.ui.small.text.container {
|
||||||
max-width: 500px !important;
|
max-width: 500px !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="ui card">
|
<div class="ui card">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="header">
|
<div class="header ellipsis">
|
||||||
{{ displayName }}
|
<router-link
|
||||||
|
:title="displayName"
|
||||||
|
:to="{name: 'federation.libraries.detail', params: {id: library.uuid }}">
|
||||||
|
{{ displayName }}
|
||||||
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
|
@ -72,7 +72,7 @@ export default {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
self.errors = []
|
self.errors = []
|
||||||
self.result = null
|
self.result = null
|
||||||
axios.get('/federation/libraries/fetch/', {params: {account: this.libraryUsername}}).then((response) => {
|
axios.get('/federation/libraries/fetch/', {params: {account: this.libraryUsername.trim()}}).then((response) => {
|
||||||
self.result = response.data
|
self.result = response.data
|
||||||
self.result.display_name = self.libraryUsername
|
self.result.display_name = self.libraryUsername
|
||||||
self.isLoading = false
|
self.isLoading = false
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
<router-link
|
<router-link
|
||||||
v-if="importBatch"
|
v-if="importBatch"
|
||||||
:to="{name: 'library.import.batches.detail', params: {id: importBatch.id }}">
|
:to="{name: 'library.import.batches.detail', params: {id: importBatch.id }}">
|
||||||
<i18next path="Import #{%id%} launched" :id="importBatch.id"/>
|
{{ $t('Import #{% id %} launched', {id: importBatch.id}) }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</th>
|
</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
|
|
@ -84,7 +84,12 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $t('Library size') }}</td>
|
<td>{{ $t('Library size') }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{ $t('{%count%} tracks', { count: object.tracks_count }) }}
|
<template v-if="object.tracks_count">
|
||||||
|
{{ $t('{%count%} tracks', { count: object.tracks_count }) }}
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
{{ $t('Unkwnown') }}
|
||||||
|
</template>
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="fields">
|
<div class="fields">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{ $t('Search') }}</label>
|
<label>{{ $t('Search') }}</label>
|
||||||
<input type="text" v-model="query" placeholder="Enter an library domain name..."/>
|
<input class="search" type="text" v-model="query" placeholder="Enter an library domain name..."/>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{ $t('Ordering') }}</label>
|
<label>{{ $t('Ordering') }}</label>
|
||||||
|
@ -115,6 +115,7 @@ export default {
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
$('.ui.dropdown').dropdown()
|
$('.ui.dropdown').dropdown()
|
||||||
|
$(this.$el).find('.field .search').focus()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateQueryString: _.debounce(function () {
|
updateQueryString: _.debounce(function () {
|
||||||
|
|
Loading…
Reference in New Issue