#263 improve responsiveness

This commit is contained in:
Mario Romano
2016-06-23 14:39:42 +01:00
parent 4a5a2626e3
commit 52509c5692
2 changed files with 33 additions and 3 deletions

View File

@@ -66,13 +66,15 @@ import {
</content-column>
<content-column
title="{{'DOCUMENT_LIST.COLUMNS.CREATED_BY' | translate}}"
source="createdByUser.displayName">
source="createdByUser.displayName"
class="desktop-only">
</content-column>
<content-column
title="{{'DOCUMENT_LIST.COLUMNS.CREATED_ON' | translate}}"
source="createdAt"
type="date"
format="medium">
format="medium"
class="desktop-only">
</content-column>
</content-columns>
<content-actions>
@@ -154,7 +156,7 @@ class DocumentListDemo implements OnInit {
currentPath: string = '/';
authenticated: boolean;
public host: string = 'http://devproducts-platform.alfresco.me';
public host: string = 'http://192.168.99.100:8080/';
token: string;

View File

@@ -84,3 +84,31 @@
height: 0;
display: block;
}
/* small desktop */
@media all and (max-width: 1200px) {}
/* tablet */
@media all and (max-width: 1024px) {}
/* mobile phone */
@media all and (max-width: 768px) {
:host th.desktop-only .cell-value {
display: none;
}
:host td.desktop-only .cell-value {
display: none;
}
}
@media (max-device-width: 768px){
:host th.desktop-only .cell-value {
display: none;
}
:host td.desktop-only .cell-value {
display: none;
}
}