Skip to content

Commit

Permalink
fix: control the height of the jdaviz app
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobuikhuizen committed Apr 8, 2021
1 parent 58ade75 commit 9e56bea
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions example/index_jwst.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<link href="https://cdn.materialdesignicons.com/4.9.95/css/materialdesignicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="static/css/jdaviz.css" />
<link href="static/css/specviz.css" rel="stylesheet" type="text/css" />
</head>

Expand Down Expand Up @@ -111,6 +112,7 @@
<v-col>
<v-alert type="error" v-if="!voilaConnection" class="voila-connection">Unable to connect to Voila server</v-alert>
<jupyter-widget-embed
class="jdaviz-panel"
voila-url="http://localhost:8000"
notebook="jdaviz_test.ipynb"
mount-id="specviz"
Expand Down
2 changes: 2 additions & 0 deletions example/index_simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<link href="https://cdnjs.cloudflare.com/ajax/libs/vuetify/2.2.23/vuetify.min.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons' rel="stylesheet">
<link href="https://cdn.materialdesignicons.com/4.9.95/css/materialdesignicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="static/css/jdaviz.css" />
<script src="voila-embed.js"></script>
</head>
<body>
Expand All @@ -22,6 +23,7 @@
-->
<v-col>
<jupyter-widget-embed
class="jdaviz-panel"
voila-url="http://localhost:8000"
notebook="jdaviz_test.ipynb"
mount-id="specviz"
Expand Down
4 changes: 2 additions & 2 deletions example/index_zmast.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet" />
<link rel="stylesheet" href="static/css/jdaviz.css" />
<link rel="stylesheet" href="static/css/site.css" />
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.24/css/dataTables.bootstrap4.min.css">
<!-- <link rel="stylesheet" href="/static/css/jquery.dataTables.min.css" />
<link rel="stylesheet" href="/static/css/jquery.loadingModal.min.css" />
<link rel="stylesheet" href="/static/css/jquery-ui.min.css" /> -->

<title>z.MAST object</title>

</head>

<body class="hsc-body">
Expand Down Expand Up @@ -134,7 +134,7 @@
the main content view consisting of the DATB JDAviz application
-->
<v-col>
<jupyter-widget-embed
<jupyter-widget-embed class="jdaviz-panel"
v-if="voilaConnection && fileSupported"
voila-url="http://localhost:8000"
notebook="jdaviz_test.ipynb"
Expand Down
7 changes: 7 additions & 0 deletions example/static/css/jdaviz.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.jdaviz-panel {
height: 400px;
}

.jdaviz-panel > .v-application--wrap {
min-height: unset;
}

0 comments on commit 9e56bea

Please # to comment.