feat(OAuthPage): enhance layout and styling for better user experience

This commit is contained in:
Supra4E8C
2026-02-14 20:32:31 +08:00
parent 211f9f280c
commit b702cd6e4c
2 changed files with 296 additions and 203 deletions

View File

@@ -28,6 +28,35 @@
gap: $spacing-xl;
}
.cardContent {
display: flex;
flex-direction: column;
gap: $spacing-md;
:global(.form-group) {
margin-bottom: 0;
}
:global(.status-badge) {
margin-bottom: 0;
align-self: flex-start;
}
}
.cardHint {
margin: 0;
font-size: 13px;
line-height: 1.6;
color: var(--text-secondary);
}
.cardHintSecondary {
margin: 0;
font-size: 12px;
line-height: 1.5;
color: var(--text-tertiary);
}
.oauthSection {
display: flex;
flex-direction: column;
@@ -72,10 +101,10 @@
}
.callbackSection {
margin-top: $spacing-md;
margin-top: 0;
display: flex;
flex-direction: column;
gap: $spacing-xs;
gap: $spacing-sm;
}
.callbackActions {
@@ -117,11 +146,24 @@
.geminiProjectField {
:global(.form-group) {
margin-top: $spacing-sm;
margin-top: 0;
margin-bottom: 0;
gap: $spacing-sm;
}
}
.formItem {
display: flex;
flex-direction: column;
gap: $spacing-xs;
}
.formItemLabel {
margin: 0;
font-weight: 600;
color: var(--text-primary);
}
.filePicker {
display: flex;
align-items: center;
@@ -143,3 +185,49 @@
.fileNamePlaceholder {
color: var(--text-secondary);
}
.connectionBox {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: $radius-md;
padding: $spacing-md;
display: flex;
flex-direction: column;
gap: $spacing-sm;
}
.connectionLabel {
margin: 0;
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
}
.keyValueList {
display: flex;
flex-direction: column;
gap: 6px;
}
.keyValueItem {
display: grid;
grid-template-columns: 140px 1fr;
gap: 10px;
align-items: start;
@include mobile {
grid-template-columns: 1fr;
gap: 2px;
}
}
.keyValueKey {
color: var(--text-secondary);
font-size: 13px;
}
.keyValueValue {
color: var(--text-primary);
word-break: break-all;
overflow-wrap: anywhere;
}