diff --git a/flatisfy/web/js_src/components/flatstable.vue b/flatisfy/web/js_src/components/flatstable.vue index 056225c..6830a76 100644 --- a/flatisfy/web/js_src/components/flatstable.vue +++ b/flatisfy/web/js_src/components/flatstable.vue @@ -41,28 +41,30 @@ - + - + + - [{{ flat.id.split("@")[1] }}] {{ flat.title }} + [{{ flat.id.split("@")[1] }}] {{ flat.title }} - + - + + {{ flat.area }} m² @@ -169,10 +171,8 @@ export default { this.sortBy = field } }, - showMore (event, flatId) { - if (event.target.tagName === 'TD') { - this.$router.push({ name: 'details', params: { id: flatId }}) - } + makeDetailsUrl(flatId) { + return `/#/flat/${flatId}`; }, capitalize: capitalize, range: range @@ -217,4 +217,11 @@ pre { word-wrap: break-word; word-break: break-all; } + +.fill { + display: block; + width: 100%; + padding-left: 0; + padding-right: 0; +}