diff --git a/frontend/src/components/ExperimentFilters.vue b/frontend/src/components/ExperimentFilters.vue
index 85485a3..5023fb2 100644
--- a/frontend/src/components/ExperimentFilters.vue
+++ b/frontend/src/components/ExperimentFilters.vue
@@ -35,7 +35,7 @@
-
@@ -61,7 +81,6 @@ export default defineComponent({
});
diff --git a/frontend/src/components/SimpleDialog.vue b/frontend/src/components/SimpleDialog.vue
index 99ca300..40d7dd7 100644
--- a/frontend/src/components/SimpleDialog.vue
+++ b/frontend/src/components/SimpleDialog.vue
@@ -1,6 +1,12 @@
-
+
@@ -30,6 +36,7 @@ interface Props {
modelValue: boolean;
title?: string;
content?: string;
+ width?: number;
}
const props = defineProps();
const emit = defineEmits(['update:modelValue', 'confirm', 'cancel']);
diff --git a/frontend/src/components/charts/RunResultsFragilitiesChart.vue b/frontend/src/components/charts/RunResultsFragilitiesChart.vue
index dd5b15e..d5df8d5 100644
--- a/frontend/src/components/charts/RunResultsFragilitiesChart.vue
+++ b/frontend/src/components/charts/RunResultsFragilitiesChart.vue
@@ -17,12 +17,12 @@ const { t } = useI18n({ useScope: 'global' });
interface Props {
data: RunResultFragility[];
- showLegend: boolean;
+ compact: boolean;
showEmpirical: boolean;
}
const props = withDefaults(defineProps(), {
- showLegend: true,
+ compact: false,
showEmpirical: true,
});
@@ -30,21 +30,28 @@ const layout = {
xaxis: {
title: {
text: t('pga_axis'),
+ font: {
+ size: props.compact ? 10 : undefined,
+ },
},
range: [0, 1],
},
yaxis: {
title: {
text: t('dg_pga_axis'),
+ font: {
+ size: props.compact ? 10 : undefined,
+ },
},
},
margin: {
l: 50, // Left margin
r: 10, // Right margin
- b: 50, // Bottom margin
+ b: props.compact ? 30 : 50, // Bottom margin
t: 50, // Top margin
},
- showLegend: props.showLegend,
+ height: props.compact ? 300 : undefined,
+ showLegend: !props.compact,
};
const config = {
@@ -89,7 +96,7 @@ const chartData = computed(() => {
color: getDgColor(key),
},
name: `DG${key} (empirical)`,
- showlegend: props.showLegend,
+ showlegend: !props.compact,
legendgroup: 'empirical',
};
})
@@ -110,7 +117,7 @@ const chartData = computed(() => {
width: 2,
},
name: `DG${key} (fitted)`,
- showlegend: props.showLegend,
+ showlegend: !props.compact,
legendgroup: 'fitted',
};
});
diff --git a/frontend/src/i18n/en/index.ts b/frontend/src/i18n/en/index.ts
index 542c5c0..b9ae4de 100644
--- a/frontend/src/i18n/en/index.ts
+++ b/frontend/src/i18n/en/index.ts
@@ -194,6 +194,7 @@ export default {
top_displacement_mm: 'Top displacement (mm)',
total_building_height: 'Total Building Height',
units: 'Units',
+ view_details: 'View details',
view_model: 'View numerical model',
view_test: 'View test',
vtk_help:
diff --git a/frontend/src/layouts/BuildingsLayout.vue b/frontend/src/layouts/BuildingsLayout.vue
index 9ffc45c..f2e82bf 100644
--- a/frontend/src/layouts/BuildingsLayout.vue
+++ b/frontend/src/layouts/BuildingsLayout.vue
@@ -2,7 +2,10 @@
-
+
route.path === '/buildings');
+const withBanner = computed(
+ () => !Object.keys(route.query).includes('no-banner')
+);
+
watch(
() => isBuildings.value,
() => {