Skip to content

Commit

Permalink
prevent scrolling in landscape mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rind committed Aug 8, 2023
1 parent b09f12a commit 78acde8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<div id="app"></div>
</body>
</html>
8 changes: 4 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div id="nav">
<!-- <router-link to="/">Home</router-link> -->
<!-- <router-link to="/about">About</router-link> -->
</div>
<!-- <div id="nav">
<router-link to="/">Home</router-link>
<router-link to="/about">About</router-link>
</div> -->
<router-view />
</template>
<script lang="ts">
Expand Down
3 changes: 3 additions & 0 deletions src/components/NetworkMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,12 @@ line.select {
#brushBtns {
position: absolute;
visibility: hidden;
top: 0;
right: 0;
// display: flex;
// flex-direction: column;
}
#brushBtns > button {
display: block;
margin-bottom: 0.5rem;
Expand Down
6 changes: 5 additions & 1 deletion src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default defineComponent({
background: $fhstpblue; /* #005096; /* $light; */
color: white;
padding: 1vmin 1vmin 0.3rem 1vmin;
margin: 0.5rem 1px 0 1px;
margin: 1rem 1px 0 1px;
border-radius: 6px 6px 0 0;
flex-shrink: 0;
Expand Down Expand Up @@ -189,6 +189,10 @@ export default defineComponent({
overflow-y: auto;
}
html {
overflow-y: hidden !important;
}
/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
display: none;
Expand Down

0 comments on commit 78acde8

Please sign in to comment.