diff options
| author | polwex <polwex@sortug.com> | 2025-11-18 16:59:24 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-11-18 16:59:24 +0700 |
| commit | 420a543f8af3075502b0a7530a0fa06af264eb8b (patch) | |
| tree | 7446a8c59bd4b66ca2bb5ed04bce40d382e31c36 /gui/src/styles/UserModal.css | |
| parent | 76f99af3c98a689441315b5ed087c4b83c083191 (diff) | |
refactoring gui too, improvements to Nostr user logic
Diffstat (limited to 'gui/src/styles/UserModal.css')
| -rw-r--r-- | gui/src/styles/UserModal.css | 46 |
1 files changed, 42 insertions, 4 deletions
diff --git a/gui/src/styles/UserModal.css b/gui/src/styles/UserModal.css index bf4ff56..e976b38 100644 --- a/gui/src/styles/UserModal.css +++ b/gui/src/styles/UserModal.css @@ -6,7 +6,8 @@ gap: 20px; min-width: 400px; max-width: 500px; - padding: 24px; + padding: 0; + overflow: hidden; } .user-modal-error { @@ -25,6 +26,17 @@ display: flex; gap: 16px; align-items: flex-start; + padding: 24px 24px 0 24px; + margin-top: -40px; + /* Pull avatar up over banner */ + position: relative; + z-index: 1; +} + +/* Reset margin if no banner */ +.user-modal>.user-modal-header:first-child { + margin-top: 0; + padding: 24px; } .user-modal-avatar-wrapper { @@ -36,8 +48,10 @@ height: 80px; border-radius: 50%; overflow: hidden; - border: 3px solid var(--color-border); + border: 4px solid var(--color-background); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); transition: transform 0.2s ease, border-color 0.2s ease; + background: var(--color-background); } .user-modal-avatar-wrapper .avatar:hover { @@ -135,6 +149,7 @@ /* About Section */ .user-modal-about { padding: 16px; + margin: 0 24px; background: var(--color-surface); border-radius: 8px; border-left: 3px solid var(--color-primary); @@ -153,6 +168,7 @@ display: flex; gap: 24px; padding: 16px; + margin: 0 24px; background: var(--color-surface); border-radius: 8px; } @@ -180,6 +196,7 @@ /* Custom Fields */ .user-modal-custom-fields { padding: 16px; + margin: 0 24px; background: var(--color-surface); border-radius: 8px; } @@ -216,11 +233,32 @@ flex: 1; } +.custom-field-item .field-link { + color: var(--color-primary); + text-decoration: none; + display: inline-flex; + align-items: center; + gap: 4px; + transition: all 0.2s ease; + word-break: break-all; +} + +.custom-field-item .field-link:hover { + color: var(--color-primary-hover); + text-decoration: underline; +} + +.external-link-icon { + flex-shrink: 0; + opacity: 0.7; +} + /* Action Buttons */ .user-modal-actions { display: flex; gap: 12px; - padding-top: 8px; + padding: 16px 24px 24px 24px; + margin-top: 8px; border-top: 1px solid var(--color-border); } @@ -313,4 +351,4 @@ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-height: 90vh; overflow-y: auto; -} +}
\ No newline at end of file |
