Add settings and profile editor
All checks were successful
Android Build / publish (push) Successful in 50s
Linux Build / publish (push) Successful in 52s

This commit is contained in:
olcxja 2026-06-23 23:41:27 +02:00
commit cc41f25277
14 changed files with 1210 additions and 106 deletions

View file

@ -110,6 +110,9 @@ input, textarea {
user-select: text !important;
-webkit-user-select: text !important;
}
textarea {
resize: none;
}
.chat-message-text, .chat-message-author, .chat-message-timestamp,
.profile-name, .profile-bio, .profile-id-host,
@ -810,15 +813,15 @@ sidebarelement:has(.icon-button:active) indicator:not(.active) {
}
.profile-popup-content {
position: relative;
width: 90vw;
max-width: 31rem;
width: 31em;
height: 85vh;
max-height: 44rem;
max-height: 44em;
font-size: min(1rem, calc(90vw / 31));
background: var(--main-bg-color);
border: var(--border-width) solid var(--light-border-color);
border-radius: 0.9rem;
border-radius: 0.9em;
overflow: hidden;
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
box-shadow: 0 1em 3em rgba(0, 0, 0, 0.5);
opacity: 0;
transform: scale(0.6);
transition: all 0.2s ease;
@ -832,16 +835,16 @@ sidebarelement:has(.icon-button:active) indicator:not(.active) {
}
.profile-popup-close-btn {
position: absolute;
top: 1rem;
right: 1rem;
top: 1em;
right: 1em;
z-index: 10;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(0.25rem);
-webkit-backdrop-filter: blur(0.25rem);
backdrop-filter: blur(0.25em);
-webkit-backdrop-filter: blur(0.25em);
border: none;
width: 2.5rem;
height: 2.5rem;
border-radius: 0.8rem;
width: 2.5em;
height: 2.5em;
border-radius: 0.8em;
display: flex;
justify-content: center;
align-items: center;
@ -850,8 +853,8 @@ sidebarelement:has(.icon-button:active) indicator:not(.active) {
cursor: pointer;
}
.profile-popup-close-btn svg {
width: 1.5rem;
height: 1.5rem;
width: 1.5em;
height: 1.5em;
}
.profile-popup-close-btn:hover {
background: rgba(255, 255, 255, 0.2);
@ -865,62 +868,104 @@ sidebarelement:has(.icon-button:active) indicator:not(.active) {
}
.profile-banner {
width: 100%;
height: 12.5rem;
aspect-ratio: 494 / 200;
background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
object-fit: cover;
flex-shrink: 0;
}
.profile-avatar-container {
position: relative;
margin-top: -3.75rem;
margin-left: 2rem;
width: 7.5rem;
height: 7.5rem;
margin-top: -3.75em;
margin-left: 2em;
width: 7.5em;
height: 7.5em;
}
.profile-avatar {
width: 100%;
height: 100%;
border-radius: 0.8rem;
border-radius: 0.8em;
border: var(--border-width) solid rgba(255, 255, 255, 0.2);
object-fit: cover;
background: var(--main-bg-color);
}
.profile-info {
padding: 1rem 2rem 2rem 2rem;
padding: 1em 2em 2em 2em;
display: flex;
flex-direction: column;
gap: 1rem;
gap: 1em;
}
.profile-name {
font-size: 2rem;
font-size: 2em;
font-weight: 800;
line-height: 1.1;
margin-bottom: 0.2rem;
margin-bottom: 0.2em;
word-break: break-word;
}
.profile-id-host {
font-size: 1rem;
font-size: 1em;
opacity: 0.6;
font-weight: 600;
}
.profile-bio {
font-size: 1.05rem;
font-size: 1.05em;
line-height: 1.5;
white-space: pre-wrap;
background: rgba(255, 255, 255, 0.03);
padding: 1rem;
border-radius: 0.8rem;
padding: 1em;
border-radius: 0.8em;
border: var(--border-width) solid var(--light-border-color);
word-break: break-word;
}
.profile-action-btn {
align-self: flex-start;
padding: 0.6rem 1.5rem;
padding: 0.6em 1.5em;
font-weight: 700;
background: var(--text-color);
color: var(--main-bg-color);
border-radius: 0.8rem;
margin-top: 0.5rem;
border-radius: 0.8em;
margin-top: 0.5em;
margin-left: 0;
height: auto;
}
/* Custom Zoom Slider Styling */
#cropper-zoom {
-webkit-appearance: none;
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
outline: none;
margin: 10px 0;
}
#cropper-zoom::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--text-color);
cursor: pointer;
transition: transform 0.2s, background 0.2s;
}
#cropper-zoom::-webkit-slider-thumb:hover {
transform: scale(1.2);
background: #fff;
}
#cropper-zoom::-moz-range-thumb {
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--text-color);
cursor: pointer;
transition: transform 0.2s, background 0.2s;
border: none;
}
#cropper-zoom::-moz-range-thumb:hover {
transform: scale(1.2);
background: #fff;
}