Simplify connection flow, mobile transfer UI, and header actions
This commit is contained in:
@@ -1031,7 +1031,7 @@ h1 span {
|
||||
.modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgb(16 25 18 / 0.4);
|
||||
background: rgb(0 0 0 / 0.4);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -1612,15 +1612,10 @@ h1 span {
|
||||
list-style: none;
|
||||
}
|
||||
.selected-files li {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
display: block;
|
||||
margin-bottom: 14px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.selected-files li > span {
|
||||
flex: 1;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.selected-files small {
|
||||
color: var(--muted);
|
||||
white-space: nowrap;
|
||||
@@ -2024,17 +2019,6 @@ h1 span {
|
||||
}
|
||||
}
|
||||
|
||||
.local-qr-note {
|
||||
max-width: 280px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 7px;
|
||||
background: var(--surface);
|
||||
font-size: 10px !important;
|
||||
line-height: 1.8;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.account-security-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
@@ -3230,3 +3214,242 @@ a.button {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.connect-dialog-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.connection-choices {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
.connection-choice {
|
||||
min-height: 175px;
|
||||
border: 1px solid var(--line);
|
||||
background: var(--surface);
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
padding: 18px 12px;
|
||||
}
|
||||
.connection-choice:hover {
|
||||
border-color: var(--muted);
|
||||
}
|
||||
.connection-choice strong {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.connection-choice span {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.modal .join-form,
|
||||
.modal .create-space {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
}
|
||||
.modal .join-form input {
|
||||
width: 100%;
|
||||
padding: 14px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.modal .join-form .button,
|
||||
.modal .create-space .button {
|
||||
width: 100%;
|
||||
border-radius: 24px;
|
||||
}
|
||||
.modal .invite-display {
|
||||
gap: 12px;
|
||||
}
|
||||
.modal .invite-code {
|
||||
font-size: 32px;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.modal .invite-validity,
|
||||
.modal .invite-waiting {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
.modal .invite-copy {
|
||||
width: 100%;
|
||||
border-radius: 24px;
|
||||
background: var(--line);
|
||||
margin: 8px 0;
|
||||
}
|
||||
@media (max-width: 420px) {
|
||||
.connection-choice {
|
||||
min-height: 155px;
|
||||
padding: 16px 8px;
|
||||
}
|
||||
.connection-choice strong {
|
||||
font-size: 13px;
|
||||
}
|
||||
.connection-choice span {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
.selected-file-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
.selected-file-row > span {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.file-transfer-progress {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 8px 0 0 23px;
|
||||
}
|
||||
.file-transfer-progress > span {
|
||||
grid-column: 1 / -1;
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.file-transfer-progress progress {
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
border: 0;
|
||||
appearance: none;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
background: var(--line);
|
||||
}
|
||||
.file-transfer-progress progress::-webkit-progress-bar {
|
||||
background: var(--line);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.file-transfer-progress progress::-webkit-progress-value {
|
||||
background: var(--ink);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.file-transfer-progress progress::-moz-progress-bar {
|
||||
background: var(--ink);
|
||||
border-radius: 4px;
|
||||
}
|
||||
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
|
||||
input:not([type='checkbox']):not([type='radio']):not([type='file']),
|
||||
textarea,
|
||||
select {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
}
|
||||
@media (max-width: 639px) {
|
||||
.modal-backdrop {
|
||||
align-items: flex-end;
|
||||
padding: 0;
|
||||
}
|
||||
.modal-backdrop > .modal {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
max-height: calc(100dvh - 24px);
|
||||
border-radius: 22px 22px 0 0;
|
||||
padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
|
||||
}
|
||||
.modal .device-settings-form {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
height: auto;
|
||||
gap: 16px;
|
||||
}
|
||||
.modal .device-settings-form label,
|
||||
.modal .device-settings-form input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
.modal .device-settings-form input {
|
||||
min-height: 44px;
|
||||
}
|
||||
.modal .device-settings-form .button {
|
||||
width: 100%;
|
||||
min-height: 44px;
|
||||
}
|
||||
.modal .discovery-setting {
|
||||
margin-top: 20px;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 639px) {
|
||||
.modal-backdrop,
|
||||
.send-backdrop {
|
||||
top: var(--hop-visible-top, 0px);
|
||||
bottom: auto;
|
||||
height: var(--hop-visible-height, 100dvh);
|
||||
}
|
||||
.modal-backdrop > .modal,
|
||||
.send-backdrop .send-dialog {
|
||||
max-height: calc(var(--hop-visible-height, 100dvh) - 24px);
|
||||
}
|
||||
}
|
||||
|
||||
.header-more-wrap {
|
||||
position: relative;
|
||||
}
|
||||
.header-more-menu {
|
||||
position: absolute;
|
||||
top: calc(100% + 12px);
|
||||
right: 0;
|
||||
width: 220px;
|
||||
max-width: calc(100vw - 40px);
|
||||
padding: 8px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 14px;
|
||||
background: var(--soft);
|
||||
box-shadow: 0 12px 32px #0003;
|
||||
z-index: 50;
|
||||
}
|
||||
.header-more-menu > button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
min-height: 44px;
|
||||
text-align: left;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
color: var(--ink);
|
||||
}
|
||||
.header-more-menu > button:hover {
|
||||
background: var(--hover);
|
||||
}
|
||||
.header-more-menu > button svg {
|
||||
flex-shrink: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
.header-more-menu .pwa-install-button span {
|
||||
display: inline;
|
||||
}
|
||||
.service-info {
|
||||
padding: 24px 0 4px;
|
||||
font-size: 13px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
.service-info strong {
|
||||
font-size: 30px;
|
||||
letter-spacing: -0.07em;
|
||||
}
|
||||
.service-info p {
|
||||
margin: 12px 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
.service-info small {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user