Skip to content

Commit

Permalink
🐛 fix width rezise plot
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed May 12, 2022
1 parent 58a6105 commit 281af68
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 22 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backend/beastiary/webapp-dist/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/favicon.ico"><![endif]--><title>Beastiary</title><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><style>html {
overflow-y: auto !important;
}</style><link href="/css/login.4b7f13da.css" rel="prefetch"><link href="/css/login~main-dashboard.49552835.css" rel="prefetch"><link href="/css/login~main~main-dashboard.87cb79bc.css" rel="prefetch"><link href="/css/main-dashboard.7957e248.css" rel="prefetch"><link href="/css/main.38cd41ea.css" rel="prefetch"><link href="/css/main~main-dashboard.27813474.css" rel="prefetch"><link href="/js/login.cc7a4294.js" rel="prefetch"><link href="/js/login~main-dashboard.3ae3e551.js" rel="prefetch"><link href="/js/login~main~main-dashboard.3a1f6d10.js" rel="prefetch"><link href="/js/main-dashboard.8e408680.js" rel="prefetch"><link href="/js/main.81fff8c5.js" rel="prefetch"><link href="/js/main~main-dashboard.80ebc61e.js" rel="prefetch"><link href="/js/reset-password.3c459bed.js" rel="prefetch"><link href="/js/start.2c12b0d6.js" rel="prefetch"><link href="/css/chunk-vendors.5b404c1b.css" rel="preload" as="style"><link href="/js/app.eebf47d0.js" rel="preload" as="script"><link href="/js/chunk-vendors.9a0991d8.js" rel="preload" as="script"><link href="/css/chunk-vendors.5b404c1b.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="frontend"><link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but Beastiary doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.9a0991d8.js"></script><script src="/js/app.eebf47d0.js"></script></body></html>
}</style><link href="/css/login.4b7f13da.css" rel="prefetch"><link href="/css/login~main-dashboard.49552835.css" rel="prefetch"><link href="/css/login~main~main-dashboard.87cb79bc.css" rel="prefetch"><link href="/css/main-dashboard.37d5550a.css" rel="prefetch"><link href="/css/main.38cd41ea.css" rel="prefetch"><link href="/css/main~main-dashboard.27813474.css" rel="prefetch"><link href="/js/login.cc7a4294.js" rel="prefetch"><link href="/js/login~main-dashboard.3ae3e551.js" rel="prefetch"><link href="/js/login~main~main-dashboard.3a1f6d10.js" rel="prefetch"><link href="/js/main-dashboard.1b2e07d8.js" rel="prefetch"><link href="/js/main.81fff8c5.js" rel="prefetch"><link href="/js/main~main-dashboard.80ebc61e.js" rel="prefetch"><link href="/js/reset-password.3c459bed.js" rel="prefetch"><link href="/js/start.2c12b0d6.js" rel="prefetch"><link href="/css/chunk-vendors.5b404c1b.css" rel="preload" as="style"><link href="/js/app.e72a2d01.js" rel="preload" as="script"><link href="/js/chunk-vendors.9a0991d8.js" rel="preload" as="script"><link href="/css/chunk-vendors.5b404c1b.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="frontend"><link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but Beastiary doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.9a0991d8.js"></script><script src="/js/app.e72a2d01.js"></script></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/css/login~main~main-dashboard.87cb79bc.css"
},
{
"revision": "5ca6a046de703f690d7e",
"url": "/css/main-dashboard.7957e248.css"
"revision": "0ce117affbe3502b0999",
"url": "/css/main-dashboard.37d5550a.css"
},
{
"revision": "6212b09d41560be1c827",
Expand All @@ -28,12 +28,12 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/css/main~main-dashboard.27813474.css"
},
{
"revision": "f284361b555c7f6dc8888d71e6e271f2",
"revision": "7d6bc7c5184ef56cf601e9211a163912",
"url": "/index.html"
},
{
"revision": "73fc26c899c3633b5e2f",
"url": "/js/app.eebf47d0.js"
"revision": "a4bac14217ac11c5f9b5",
"url": "/js/app.e72a2d01.js"
},
{
"revision": "efb27178083e9bac70b9",
Expand All @@ -52,8 +52,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/js/login~main~main-dashboard.3a1f6d10.js"
},
{
"revision": "5ca6a046de703f690d7e",
"url": "/js/main-dashboard.8e408680.js"
"revision": "0ce117affbe3502b0999",
"url": "/js/main-dashboard.1b2e07d8.js"
},
{
"revision": "6212b09d41560be1c827",
Expand Down
2 changes: 1 addition & 1 deletion backend/beastiary/webapp-dist/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.a5b1e93a2536968503de5efcf750df42.js"
"/precache-manifest.3ec687b1852a7aabc79c78a1bfe0047b.js"
);

workbox.core.setCacheNameDetails({prefix: "frontend"});
Expand Down
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "beastiary"
version = "1.5.5"
version = "1.5.6"
description = ""
authors = ["Wytamma Wirth <[email protected]>"]
readme = "PYPI-README.md"
Expand Down
24 changes: 20 additions & 4 deletions frontend/src/views/main/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
Estimates
</v-tab>
</v-tabs>
<v-tabs-items v-model="tab">

<v-tabs-items v-model="tab" >
<div ref="tabItems" >
<v-tab-item >
<v-card flat class="pa-2" fill-height>
<vue-resizable
Expand Down Expand Up @@ -145,7 +145,7 @@
<StatsTable v-if="tab === 6" :height="tabHeight" :width="tabWidth" />
</v-card>
</v-tab-item>
</div>
</v-tabs-items>
</v-card>
</v-col>
Expand Down Expand Up @@ -194,8 +194,11 @@ export default class Dashboard extends Vue {
public tabWidth = null;
public eHandler(data) {
this.tabWidth = data.width;
this.tabHeight = data.height;
if (this.$refs.tabItems) {
// @ts-ignore
this.tabWidth = this.$refs.tabItems.clientWidth;
}
}
get activeTraceIDs() {
Expand All @@ -215,6 +218,19 @@ export default class Dashboard extends Vue {
return '';
}
private mounted() {
window.addEventListener('resize', this.setPlotWidth);
}
private unmounted() {
window.removeEventListener('resize', this.setPlotWidth);
}
private setPlotWidth() {
if (this.$refs.tabItems) {
// @ts-ignore
this.tabWidth = this.$refs.tabItems.clientWidth;
}
}
}
</script>
Expand Down

0 comments on commit 281af68

Please sign in to comment.