diff --git a/.changeset/swift-kings-add.md b/.changeset/swift-kings-add.md
new file mode 100644
index 0000000000..cbbdb3877f
--- /dev/null
+++ b/.changeset/swift-kings-add.md
@@ -0,0 +1,5 @@
+---
+'@backstage/plugin-newrelic-dashboard': minor
+---
+
+Fix the styles for NewRelicDashboard, add more responsiveness
diff --git a/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx
index cdac4196d4..219b2ed925 100644
--- a/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx
+++ b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx
@@ -15,8 +15,7 @@
*/
import React from 'react';
-import { Box, Grid, MenuItem, Select } from '@material-ui/core';
-import { useTheme } from '@material-ui/core/styles';
+import { Box, makeStyles, MenuItem, Select } from '@material-ui/core';
import { useApi, storageApiRef } from '@backstage/core-plugin-api';
import useAsync from 'react-use/lib/useAsync';
import {
@@ -29,6 +28,20 @@ import { newRelicDashboardApiRef } from '../../../api';
import { DashboardSnapshotSummary } from '../../../api/NewRelicDashboardApi';
import useObservable from 'react-use/lib/useObservable';
+const useStyles = makeStyles(
+ theme => ({
+ cardSelect: {
+ margin: '15px 10px 0 0',
+ },
+ img: {
+ width: '100%',
+ height: 'auto',
+ border: `solid 1px ${theme.palette.common.black}`,
+ },
+ }),
+ { name: 'BackstageNewRelicDashboardSnapshot' },
+);
+
/**
* @public
*/
@@ -37,11 +50,7 @@ export const DashboardSnapshot = (props: {
name: string;
permalink: string;
}) => {
- const {
- palette: {
- common: { black },
- },
- } = useTheme();
+ const classes = useStyles();
const { guid, name, permalink } = props;
const newRelicDashboardAPI = useApi(newRelicDashboardApiRef);
const storageApi = useApi(storageApiRef).forBucket('newrelic-dashboard');
@@ -76,14 +85,15 @@ export const DashboardSnapshot = (props: {
/\pdf$/i,
'png',
);
+
return (
-
- ) : (
- 'Dashboard loading... , click here to open if it did not render correctly'
- )}
-
-
+ ) : (
+ 'Dashboard loading... , click here to open if it did not render correctly'
+ )}
+