diff --git a/src/components/widgets/openweathermap/weather.jsx b/src/components/widgets/openweathermap/weather.jsx index 893eb3bda..63b7b0816 100644 --- a/src/components/widgets/openweathermap/weather.jsx +++ b/src/components/widgets/openweathermap/weather.jsx @@ -33,7 +33,7 @@ export default function OpenWeatherMap({ options }) { } return ( -
+
-
-
- {options.disk && } +
+
{options.cpu && } {options.memory && } + {options.disk && }
{options.label && (
diff --git a/src/components/widgets/weather/weather.jsx b/src/components/widgets/weather/weather.jsx index f1c2d9018..6fc365f0f 100644 --- a/src/components/widgets/weather/weather.jsx +++ b/src/components/widgets/weather/weather.jsx @@ -33,7 +33,7 @@ export default function WeatherApi({ options }) { } return ( -
+
diff --git a/src/pages/index.js b/src/pages/index.js index 99c1e695c..009ee00ec 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -19,6 +19,7 @@ const ColorToggle = dynamic(() => import("components/color-toggle"), { }); const rightAlignedWidgets = ["weatherapi", "openweathermap", "weather", "search"]; +const expandedWidgets = ["search"]; export default function Home() { const { data: services, error: servicesError } = useSWR("/api/services"); @@ -32,7 +33,7 @@ export default function Home() { Welcome
-
+
{widgets && ( <> {widgets @@ -40,21 +41,14 @@ export default function Home() { .map((widget, i) => ( ))} - {widgets - .filter((widget) => widget.type === "search") - .map( - (widget, i) => - ??
- )} - {widgets - .filter((widget) => rightAlignedWidgets.includes(widget.type)) - .map((widget, i) => - widget.type === "search" ? ( - - ) : ( + +
+ {widgets + .filter((widget) => rightAlignedWidgets.includes(widget.type)) + .map((widget, i) => ( - ) - )} + ))} +
)}