feat: enhance session UX and codex defaults
This commit is contained in:
207
public/style.css
207
public/style.css
@@ -669,6 +669,13 @@ body.session-loading-active {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
}
|
||||
.session-project-header-actions {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.session-project-count {
|
||||
display: inline-flex;
|
||||
@@ -683,6 +690,30 @@ body.session-loading-active {
|
||||
font-size: 10px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.session-project-create {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(221, 208, 192, 0.95);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 249, 242, 0.96);
|
||||
color: var(--text-secondary);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
transition: background 0.16s, color 0.16s, transform 0.16s, border-color 0.16s;
|
||||
}
|
||||
.session-project-create:hover {
|
||||
background: var(--accent-light);
|
||||
border-color: rgba(192, 85, 58, 0.24);
|
||||
color: var(--accent);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.session-project-create:focus-visible {
|
||||
outline: 2px solid rgba(192, 85, 58, 0.22);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.session-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -1098,32 +1129,130 @@ body.session-loading-active {
|
||||
max-width: 100%;
|
||||
}
|
||||
.msg-attachments {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
|
||||
gap: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.msg-attachment-label {
|
||||
display: inline-flex;
|
||||
.msg-attachment-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
padding: 8px;
|
||||
border: 1px solid rgba(221, 208, 192, 0.92);
|
||||
border-radius: 14px;
|
||||
background: rgba(255, 255, 255, 0.82);
|
||||
color: var(--text-primary);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 8px 20px rgba(45, 31, 20, 0.05);
|
||||
transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s, background 0.16s;
|
||||
}
|
||||
.msg-attachment-card:hover {
|
||||
transform: translateY(-1px);
|
||||
border-color: rgba(192, 85, 58, 0.22);
|
||||
box-shadow: 0 12px 24px rgba(45, 31, 20, 0.08);
|
||||
}
|
||||
.msg-attachment-card:focus-visible {
|
||||
outline: 2px solid rgba(192, 85, 58, 0.24);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.msg-attachment-card:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.88;
|
||||
transform: none;
|
||||
}
|
||||
.msg-attachment-card.is-expired {
|
||||
background: rgba(249, 242, 233, 0.9);
|
||||
}
|
||||
.msg-attachment-thumb {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-height: 132px;
|
||||
overflow: hidden;
|
||||
border-radius: 11px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(245, 238, 229, 0.92), rgba(232, 222, 211, 0.9));
|
||||
}
|
||||
.msg-attachment-thumb-placeholder,
|
||||
.attachment-preview-placeholder {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
max-width: 100%;
|
||||
padding: 5px 9px;
|
||||
border-radius: 999px;
|
||||
background: rgba(91, 126, 161, 0.12);
|
||||
justify-content: center;
|
||||
padding: 12px;
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.msg-attachment-thumb-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
opacity: 0;
|
||||
transition: opacity 0.18s ease;
|
||||
}
|
||||
.msg-attachment-card.is-loaded .msg-attachment-thumb-image {
|
||||
opacity: 1;
|
||||
}
|
||||
.msg-attachment-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
}
|
||||
.msg-attachment-name,
|
||||
.msg-attachment-note {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.msg-attachment-name {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.msg-attachment-note {
|
||||
color: var(--text-secondary);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.msg.user .msg-attachment-card {
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
color: #fff;
|
||||
box-shadow: none;
|
||||
}
|
||||
.msg.user .msg-attachment-card:hover {
|
||||
border-color: rgba(255, 255, 255, 0.34);
|
||||
}
|
||||
.msg.user .msg-attachment-thumb {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
.msg.user .msg-attachment-thumb-placeholder,
|
||||
.msg.user .msg-attachment-note {
|
||||
color: rgba(255, 255, 255, 0.78);
|
||||
}
|
||||
.msg.user .msg-attachment-name {
|
||||
color: #fff;
|
||||
}
|
||||
.msg.user .msg-attachment-card.is-expired {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
.msg-attachment-card.is-error .msg-attachment-thumb-placeholder {
|
||||
color: var(--danger);
|
||||
}
|
||||
.msg.user .msg-bubble {
|
||||
background: var(--bg-bubble-user);
|
||||
color: #fff;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
.msg.user .msg-attachment-label {
|
||||
background: rgba(255, 255, 255, 0.16);
|
||||
color: rgba(255, 255, 255, 0.92);
|
||||
}
|
||||
.msg.assistant .msg-bubble {
|
||||
background: var(--bg-bubble-assistant);
|
||||
border: 1px solid var(--border-color);
|
||||
@@ -2517,6 +2646,10 @@ html[data-theme='coolvibe'] .settings-back:hover {
|
||||
.modal-panel-wide {
|
||||
max-width: 600px;
|
||||
}
|
||||
.attachment-preview-panel {
|
||||
width: min(92vw, 1040px);
|
||||
max-width: min(92vw, 1040px);
|
||||
}
|
||||
.modal-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -2546,6 +2679,50 @@ html[data-theme='coolvibe'] .settings-back:hover {
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
}
|
||||
.attachment-preview-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
padding: 18px 20px 20px;
|
||||
}
|
||||
.attachment-preview-stage {
|
||||
position: relative;
|
||||
min-height: 320px;
|
||||
max-height: 72vh;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(245, 238, 229, 0.96), rgba(232, 222, 211, 0.92));
|
||||
border: 1px solid rgba(221, 208, 192, 0.92);
|
||||
}
|
||||
.attachment-preview-stage.is-ready {
|
||||
background: #111;
|
||||
}
|
||||
.attachment-preview-stage.is-error {
|
||||
border-color: rgba(192, 85, 58, 0.24);
|
||||
}
|
||||
.attachment-preview-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: 72vh;
|
||||
object-fit: contain;
|
||||
background: #111;
|
||||
}
|
||||
.attachment-preview-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.attachment-preview-name {
|
||||
color: var(--text-primary);
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.attachment-preview-desc {
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
}
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
||||
Reference in New Issue
Block a user