Skip to content

Commit b9d6c84

Browse files
committed
rounded error button, fixed broken container query
1 parent b22b364 commit b9d6c84

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/AiidaExplorer/VisualiserPane/Rich/StructureDataVisualiser/index.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import CardContainer from "../../../components/CardContainer";
1212
import ErrorDisplay from "../../../components/Error";
1313
import Spinner from "../../../components/Spinner";
1414

15-
16-
1715
// StructureData has the 'derivedProps' key, cifData does not and we have to handle such case.
1816
// TODO - add the full js method for multiple file types here. it seems quite cheap and probably a good use case
1917
// TODO - alternatively could use discuss with adding download_formats endpoints here instead /
@@ -102,7 +100,7 @@ export default function StructureDataVisualiser({ nodeData, restApiUrl }) {
102100

103101
return (
104102
<div className="ae:w-full ae:mx-auto ae:p-4 ae:space-y-6">
105-
<div className="@container">
103+
<div className="ae:@container">
106104
{/* <xl=1col [lhs expands], >xl=2col */}
107105
<div className="ae:grid ae:grid-cols-1 ae:gap-4 ae:@xl:grid-cols-[1fr_auto]">
108106
{/* Left: Structure Visualizer */}

src/AiidaExplorer/components/Error.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function ErrorDisplay({ message, onRetry }) {
1111
{onRetry && (
1212
<button
1313
onClick={onRetry}
14-
className="ae:mt-3 ae:px-3 ae:py-1 ae:bg-red-500 ae:text-white ae:hover:bg-red-600"
14+
className="ae:mt-3 ae:px-3 ae:py-1 ae:rounded-md ae:bg-red-500 ae:text-white ae:hover:bg-red-600"
1515
>
1616
Retry
1717
</button>

0 commit comments

Comments
 (0)