Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/remove-spinner-hardcoded-margin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudoperators/juno-ui-components": patch
---

Remove hardcoded `mr-3` margin from Spinner component. The margin was applied globally, causing layout issues when Spinner is used inside components like Button that manage their own spacing. Callers that relied on the built-in margin have been updated to add the margin explicitly.
Comment thread
MartinS-git marked this conversation as resolved.
Outdated
2 changes: 1 addition & 1 deletion apps/doop/src/components/shared/HintLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Stack, Spinner } from "@cloudoperators/juno-ui-components"
const HintLoading = ({ text, className }: any) => {
return (
<Stack alignment="center" className={className}>
<Spinner variant="primary" />
<Spinner variant="primary" className="mr-3" />
{text ? <span>{text}</span> : <span>Loading...</span>}
</Stack>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const HintLoading = ({ text, centered }: any) => {
return (
<Stack {...stackProps}>
<Stack alignment="center">
<Spinner variant="primary" />
<Spinner variant="primary" className="mr-3" />
{text ? <span>{text}</span> : <span>Loading...</span>}
</Stack>
</Stack>
Expand Down
2 changes: 1 addition & 1 deletion apps/greenhouse/src/components/shared/HintLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Stack, Spinner } from "@cloudoperators/juno-ui-components"
const HintLoading = ({ text }: any) => {
return (
<Stack alignment="center">
<Spinner variant="primary" />
<Spinner variant="primary" className="mr-3" />
{text ? <span>{text}</span> : <span>Loading...</span>}
</Stack>
)
Expand Down
2 changes: 1 addition & 1 deletion apps/heureka/src/components/Service/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const Service = () => {
return (
<>
<ErrorBoundary displayErrorMessage>
<Suspense fallback={<Spinner className="mt-4" />}>
<Suspense fallback={<Spinner className="mt-4 mr-3" />}>
Comment thread
MartinS-git marked this conversation as resolved.
Outdated
<ServiceDetails servicePromise={servicePromise} />
</Suspense>
</ErrorBoundary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const AllServicesIssuesCount = () => {
return (
<ErrorBoundary>
<Stack className="bg-theme-background-lvl-1 py-1.5 px-4 my-px text-theme-light" alignment="center">
<Suspense fallback={<Spinner size="small" />}>
<Suspense fallback={<Spinner size="small" className="mr-3" />}>
Comment thread
MartinS-git marked this conversation as resolved.
Outdated
<IssuesCount servicesPromise={servicesPromise} />
</Suspense>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const AllVulnerabilitiesCount = () => {
return (
<ErrorBoundary>
<Stack className="bg-theme-background-lvl-1 py-1.5 px-4 my-px text-theme-light" alignment="center">
<Suspense fallback={<Spinner size="small" />}>
<Suspense fallback={<Spinner size="small" className="mr-3" />}>
Comment thread
MartinS-git marked this conversation as resolved.
Outdated
<VulnerabilitiesCount vulnerabilitiesPromise={vulnerabilitiesPromise} />
</Suspense>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function ImageDetailsPage() {
// Otherwise, render the image details
return (
<ErrorBoundary displayErrorMessage>
<Suspense fallback={<Spinner className="mt-4" />}>
<Suspense fallback={<Spinner className="mt-4 mr-3" />}>
Comment thread
MartinS-git marked this conversation as resolved.
Outdated
<ImageDetails
imagesPromise={imagesPromise}
imageRepository={image}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function ImageVersionDetailsPage() {

return (
<ErrorBoundary displayErrorMessage>
<Suspense fallback={<Spinner className="mt-4" />}>
<Suspense fallback={<Spinner className="mt-4 mr-3" />}>
Comment thread
MartinS-git marked this conversation as resolved.
Outdated
<ImageVersionDetails
imageVersionsPromise={imageVersionsPromise}
imageVersion={version}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import React, { HTMLProps, ReactNode } from "react"

const spinnerBaseStyles = `
jn:animate-spin
jn:mr-3
jn:h-5
jn:w-5
Comment thread
MartinS-git marked this conversation as resolved.
`
Expand Down
Loading