mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
Fix button layout for repository form switcher
This commit is contained in:
@@ -46,7 +46,7 @@ const RepositoryFormButton: FC<RepositoryForm> = ({ path, icon, label }) => {
|
||||
link={!isSelected ? href : undefined}
|
||||
>
|
||||
<Icon className="pr-2" name={icon} color="inherit" alt="" />
|
||||
<p className={classNames("is-hidden-mobile", "is-hidden-tablet-only")}>{t(`plugins:${label}`, label)}</p>
|
||||
<span className={classNames("is-hidden-mobile", "is-hidden-tablet-only")}>{t(`plugins:${label}`, label)}</span>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
@@ -57,7 +57,7 @@ type Props = {
|
||||
|
||||
const RepositoryFormSwitcher: FC<Props> = ({ forms }) => (
|
||||
<ButtonAddons className="ml-auto">
|
||||
{(forms || []).map(form => (
|
||||
{(forms || []).map((form) => (
|
||||
<RepositoryFormButton key={form.path} {...form} />
|
||||
))}
|
||||
</ButtonAddons>
|
||||
|
||||
Reference in New Issue
Block a user