Update the size and behavior of added widgets
This commit is contained in:
@@ -12,7 +12,7 @@ export const WIDGET_REGISTRY = {
|
||||
category: "Aviation",
|
||||
description: "Displays 7-day flight level timelines across multiple volcanoes.",
|
||||
allowedSizes: {
|
||||
large: { w: 12, h: 8 }, // Spans the entire width of the screen
|
||||
xlarge: { w: 12, h: 12 },
|
||||
}
|
||||
},
|
||||
|
||||
@@ -21,8 +21,8 @@ export const WIDGET_REGISTRY = {
|
||||
category: "Computer Science",
|
||||
description: "Bar chart showing cache table operational status.",
|
||||
allowedSizes: {
|
||||
medium: { w: 4, h: 6 }, // 1/3 width
|
||||
large: { w: 6, h: 6 } // 1/2 width
|
||||
small: { w: 3, h: 12 },
|
||||
medium: { w: 6, h: 12 }
|
||||
}
|
||||
},
|
||||
|
||||
@@ -31,8 +31,8 @@ export const WIDGET_REGISTRY = {
|
||||
category: "Communications",
|
||||
description: "Feed of recent IVANS reports and reviewer statuses.",
|
||||
allowedSizes: {
|
||||
small: { w: 3, h: 6 }, // 1/4 width (tall and skinny)
|
||||
medium: { w: 4, h: 8 } // 1/3 width
|
||||
small: { w: 3, h: 12 },
|
||||
medium: { w: 6, h: 24 }
|
||||
}
|
||||
},
|
||||
|
||||
@@ -41,7 +41,7 @@ export const WIDGET_REGISTRY = {
|
||||
category: "Remote Sensing",
|
||||
description: "Feed of recent remote sensing reports.",
|
||||
allowedSizes: {
|
||||
medium: { w: 4, h: 5 }, // 1/3 width
|
||||
small: { w: 3, h: 12 },
|
||||
}
|
||||
},
|
||||
|
||||
@@ -50,8 +50,8 @@ export const WIDGET_REGISTRY = {
|
||||
category: "Daily Alerts",
|
||||
description: "List of 7-day alert level changes with trend arrows.",
|
||||
allowedSizes: {
|
||||
small: { w: 3, h: 5 },
|
||||
medium: { w: 4, h: 5 }
|
||||
small: { w: 3, h: 12 },
|
||||
large: { w: 9, h: 12 }
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user