fix settings footer buttons break point on mobile

This commit is contained in:
miloschwartz
2025-12-08 10:38:29 -05:00
parent f9b15b9156
commit 0234234108
4 changed files with 60 additions and 70 deletions

View File

@@ -198,7 +198,6 @@ export default function CredentialsPage() {
</SettingsSectionBody> </SettingsSectionBody>
{build !== "oss" && ( {build !== "oss" && (
<SettingsSectionFooter> <SettingsSectionFooter>
<div className="flex gap-2">
<Button <Button
variant="outline" variant="outline"
onClick={() => { onClick={() => {
@@ -218,7 +217,6 @@ export default function CredentialsPage() {
> >
{t("remoteExitNodeRegenerateAndDisconnect")} {t("remoteExitNodeRegenerateAndDisconnect")}
</Button> </Button>
</div>
</SettingsSectionFooter> </SettingsSectionFooter>
)} )}
</SettingsSection> </SettingsSection>

View File

@@ -182,7 +182,6 @@ export default function CredentialsPage() {
</SettingsSectionBody> </SettingsSectionBody>
{build !== "oss" && ( {build !== "oss" && (
<SettingsSectionFooter> <SettingsSectionFooter>
<div className="flex gap-2">
<Button <Button
variant="outline" variant="outline"
onClick={() => { onClick={() => {
@@ -202,7 +201,6 @@ export default function CredentialsPage() {
> >
{t("clientRegenerateAndDisconnect")} {t("clientRegenerateAndDisconnect")}
</Button> </Button>
</div>
</SettingsSectionFooter> </SettingsSectionFooter>
)} )}
</SettingsSection> </SettingsSection>
@@ -229,9 +227,7 @@ export default function CredentialsPage() {
)} )}
</p> </p>
<p> <p>
{t( {t("clientRegenerateAndDisconnectWarning")}
"clientRegenerateAndDisconnectWarning"
)}
</p> </p>
</> </>
) : ( ) : (
@@ -241,9 +237,7 @@ export default function CredentialsPage() {
"clientRegenerateCredentialsConfirmation" "clientRegenerateCredentialsConfirmation"
)} )}
</p> </p>
<p> <p>{t("clientRegenerateCredentialsWarning")}</p>
{t("clientRegenerateCredentialsWarning")}
</p>
</> </>
)} )}
</div> </div>

View File

@@ -265,7 +265,6 @@ export default function CredentialsPage() {
</SettingsSectionBody> </SettingsSectionBody>
{build !== "oss" && ( {build !== "oss" && (
<SettingsSectionFooter> <SettingsSectionFooter>
<div className="flex gap-2">
<Button <Button
variant="outline" variant="outline"
onClick={() => { onClick={() => {
@@ -285,7 +284,6 @@ export default function CredentialsPage() {
> >
{t("siteRegenerateAndDisconnect")} {t("siteRegenerateAndDisconnect")}
</Button> </Button>
</div>
</SettingsSectionFooter> </SettingsSectionFooter>
)} )}
</SettingsSection> </SettingsSection>

View File

@@ -66,7 +66,7 @@ export function SettingsSectionFooter({
children: React.ReactNode; children: React.ReactNode;
}) { }) {
return ( return (
<div className="flex justify-end space-x-2 mt-auto pt-6"> <div className="flex flex-col md:flex-row justify-end space-y-2 md:space-y-0 md:space-x-2 mt-auto pt-6">
{children} {children}
</div> </div>
); );