diff --git a/layouts/custom/cellxgene.html b/layouts/custom/cellxgene.html index 19923a51d9b885c0fe6c6023851cc79296da8bed..2907d18c681b7795f6bb1ca5642e67265d6a5349 100644 --- a/layouts/custom/cellxgene.html +++ b/layouts/custom/cellxgene.html @@ -16,20 +16,20 @@ .no-cellxgene{ display: none; } -@media only screen and (max-width: 1000px) { - .cellxgene{ - display: none; - } - .no-cellxgene{ - margin: 0 auto; - padding: 0 2em; - margin-bottom: 50px; - display: inherit; + @media only screen and (max-width: 1500px) { + .cellxgene{ + display: none; + } + .no-cellxgene{ + margin: 0 auto; + padding: 0 2em; + margin-bottom: 50px; + display: inherit; + } } -} </style> <div class="cellxgene"> - <iframe name="embed" src="{{ .Params.cxg_link }}" width="100%" height="100%" frameborder="0" allowfullscreen="" ></iframe> + <iframe name="embed" src="{{ .Params.cxg_link }}" width="100%" height="100%" frameborder="0" allowfullscreen="" style="overflow: hidden"></iframe> </div> <div class="no-cellxgene"> <h2>Screen width too narrow to display cellxgene</h1> diff --git a/layouts/custom/repository.html b/layouts/custom/repository.html index f63d4d2f14bfd1a664b0917a0dabe00ad93c1874..43ea5ecdf10f6088aab0075c55c5578f42006442 100644 --- a/layouts/custom/repository.html +++ b/layouts/custom/repository.html @@ -57,6 +57,30 @@ .no_checkbox>i.jstree-checkbox { display: none } + + .table { + margin: 0 auto; + padding: 0 2em; + max-width: 1650px; + height: 730px; + margin-bottom: 50px; + } + + .no-table{ + display: none; + } + + @media only screen and (max-width: 650px) { + .table{ + display: none; + } + .no-table{ + margin: 0 auto; + padding: 0 2em; + margin-bottom: 50px; + display: inherit; + } + } </style> <div class="content"> @@ -127,18 +151,23 @@ </div> </div> <hr> - <div class="container" align=center style="max-width: none;"> - <table id="samplesTable" border="1"> - <tr> - <th class="he">H&E Thumbnail (Pr)</th> - <th class="he">H&E Thumbnail (Bl)</th> - <th class="he">H&E Thumbnail (LUT)</th> - <th>Disease</th> - <th>ID</th> - <th>Age</th> - <th>Ethnicity</th> - </tr> - </table> + <div class=table> + <div class="container" align=center style="max-width: none;"> + <table id="samplesTable" border="1"> + <tr> + <th class="he">H&E Thumbnail (Pr)</th> + <th class="he">H&E Thumbnail (Bl)</th> + <th class="he">H&E Thumbnail (LUT)</th> + <th>Disease</th> + <th>ID</th> + <th>Age</th> + <th>Ethnicity</th> + </tr> + </table> + </div> + </div> + <div class=no-table> + <h2>Screen width too narrow to display biorepository table</h1> </div> </div>