We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7bd2b commit d5a8f66Copy full SHA for d5a8f66
ui/src/components/GraphScreenExtraPane.vue
@@ -31,11 +31,12 @@ const showed = computed(() => !!appStore.inspectedKubeObject);
31
32
watch(showed, (showed) => {
33
if (showed) {
34
- if (width.value === 0) {
+ if (width.value < minWidth) {
35
width.value = Math.max(minWidth, props.maxWidth / 3); // 1/3 of the screen's main pane width unless it's too small
36
}
37
if (width.value > props.maxWidth) {
38
- width.value = props.maxWidth;
+ // Seems like sometimes maxWidth can be 0... Probably when the real screen size is not known upon the component's mount
39
+ width.value = Math.max(minWidth, props.maxWidth);
40
41
containerRef.value.style["flex-basis"] = width.value + "px";
42
} else {
0 commit comments