mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-12 13:46:39 +00:00
fix settings footer buttons break point on mobile
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user