Skip to content

Commit

Permalink
fit width of viz to column
Browse files Browse the repository at this point in the history
  • Loading branch information
tws4793 committed Feb 11, 2022
1 parent e772e6d commit cdc834a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/viz/D3.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template lang="pug">
.card
button#zoomin +
svg#tree
svg#tree.tree
// preserveAspectRatio="xMinYMin meet">
clippath#clip
</template>
Expand Down Expand Up @@ -185,9 +185,10 @@ export default {
},
};
</script>

<style scoped>
svg#tree {
width: 100vw;
height: auto;
}
.tree {
overflow-x: scroll;
width: 100%;
}
</style>

0 comments on commit cdc834a

Please sign in to comment.