Compare commits

...

1 Commits

Author SHA1 Message Date
7309b4da18 Stash 2017-05-12 17:19:51 +02:00
4 changed files with 56 additions and 8 deletions

View File

@ -22,6 +22,23 @@ body {
padding: 4em 1em; padding: 4em 1em;
padding-top: 1em; padding-top: 1em;
color: #555; color: #555;
font-size: 14px;
}
.mobile-only {
display: none;
}
@media screen and (max-width: 767px) {
body {
max-width: auto;
width: 100%;
padding: 1em 0.1em;
}
.mobile-only {
display: initial;
}
} }
h1 { h1 {

View File

@ -67,6 +67,7 @@
<td>{{ flat.area }} </td> <td>{{ flat.area }} </td>
<td> <td>
{{ flat.rooms ? flat.rooms : '?'}} {{ flat.rooms ? flat.rooms : '?'}}
<span class="mobile-only">{{ $t("flatsDetails.RM") }}</span>
</td> </td>
<td> <td>
{{ flat.cost }} {{ flat.currency }} {{ flat.cost }} {{ flat.currency }}
@ -97,6 +98,7 @@
</template> </template>
<script> <script>
// TODO: Table is too wide on mobile device, and button trash is not aligned with links
import 'font-awesome-webpack' import 'font-awesome-webpack'
import { capitalize, range } from '../tools' import { capitalize, range } from '../tools'
@ -217,4 +219,28 @@ pre {
word-wrap: break-word; word-wrap: break-word;
word-break: break-all; word-break: break-all;
} }
@media screen and (max-width: 767px) {
table {
margin: 0;
width: 100%;
}
thead {
display: none;
}
th, td {
padding: 0.25em;
}
td a, td button {
display: block;
width: 1em;
}
td {
vertical-align: top;
}
}
</style> </style>

View File

@ -46,7 +46,8 @@ export default {
'Contact': 'Contact', 'Contact': 'Contact',
'no_phone_found': 'No phone found', 'no_phone_found': 'No phone found',
'rooms': 'room | rooms', 'rooms': 'room | rooms',
'bedrooms': 'bedroom | bedrooms' 'bedrooms': 'bedroom | bedrooms',
'RM': 'RM'
}, },
status: { status: {
'new': 'new', 'new': 'new',

View File

@ -391,5 +391,9 @@ td {
.fullButton { .fullButton {
width: 100%; width: 100%;
} }
td, th {
padding: 0;
}
} }
</style> </style>