feat: complete project workspace tags and notes UI

This commit is contained in:
2026-07-21 00:46:09 +08:00
parent 54958382f1
commit c613d4c997
28 changed files with 1621 additions and 284 deletions

View File

@@ -347,6 +347,11 @@
color: white;
}
.dashboard-button .arco-icon,
.create-project .arco-icon {
font-size: 24px;
}
.create-project {
font-size: 11px;
white-space: normal;
@@ -399,6 +404,18 @@
margin: 0;
}
.project-title-icon {
width: 24px;
height: 24px;
display: inline-grid;
place-items: center;
border-radius: 6px;
background: var(--senlin-soft-blue);
color: var(--senlin-primary);
font-size: 12px;
font-weight: 700;
}
.channel-list {
display: grid;
gap: 4px;
@@ -429,6 +446,11 @@
box-shadow: inset 3px 0 0 var(--senlin-primary);
}
.channel-badge-muted .arco-badge-number {
background: #c9cdd4;
color: #4e5969;
}
.channel-left {
min-width: 0;
display: flex;
@@ -452,6 +474,17 @@
font-weight: 700;
}
.tag-create-button.arco-btn {
height: 24px;
padding: 0 8px;
border-radius: 12px;
color: rgb(var(--arcoblue-6));
}
.tag-create-button .arco-icon {
font-size: 12px;
}
.recent-sessions button {
display: grid;
gap: 2px;
@@ -495,6 +528,85 @@
margin: 3px 0 0;
}
.project-overview-hero {
min-height: 112px;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 14px;
border: 1px solid var(--senlin-border);
border-radius: 8px;
background-position: center;
background-size: cover;
color: #fff;
padding: 16px 18px;
overflow: hidden;
}
.project-overview-identity {
min-width: 0;
display: flex;
align-items: center;
gap: 14px;
}
.project-overview-icon {
width: 44px;
height: 44px;
flex: 0 0 auto;
display: inline-grid;
place-items: center;
border: 1px solid rgb(255 255 255 / 42%);
border-radius: 8px;
background: rgb(255 255 255 / 18%);
color: #fff;
font-size: 16px;
font-weight: 700;
backdrop-filter: blur(10px);
}
.project-overview-identity h3,
.project-overview-identity .arco-typography {
color: #fff;
}
.project-overview-identity h3 {
margin: 0 0 3px;
}
.project-overview-identity .arco-typography {
max-width: 680px;
margin: 0;
opacity: 0.88;
}
.project-overview-share {
max-width: min(520px, 42vw);
display: grid;
justify-items: end;
gap: 4px;
}
.project-overview-share .arco-typography {
color: rgb(255 255 255 / 82%);
}
.project-overview-share .arco-btn {
height: 30px;
max-width: 100%;
border-color: rgb(255 255 255 / 36%);
background: rgb(255 255 255 / 18%);
color: #fff;
padding: 0 10px;
backdrop-filter: blur(10px);
}
.project-overview-share .arco-btn > span:last-child {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.metric-row {
min-width: 0;
}
@@ -579,6 +691,61 @@
grid-template-columns: minmax(260px, 1fr) 82px 100px 100px 130px;
}
.overview-task-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 12px;
padding-top: 6px;
}
.overview-task-card {
min-width: 0;
min-height: 132px;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 10px;
border: 1px solid var(--senlin-border);
border-radius: 6px;
background: var(--senlin-surface);
color: var(--senlin-text);
padding: 14px;
text-align: left;
cursor: pointer;
transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.overview-task-card:hover {
border-color: color-mix(in srgb, var(--senlin-primary) 42%, var(--senlin-border));
box-shadow: 0 8px 22px color-mix(in srgb, var(--senlin-primary) 12%, transparent);
transform: translateY(-1px);
}
.overview-task-card.completed {
background: color-mix(in srgb, var(--senlin-surface) 92%, #00b42a);
}
.overview-task-title {
min-width: 0;
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
}
.overview-task-title svg {
color: var(--senlin-primary);
}
.overview-task-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 10px;
color: var(--senlin-muted);
font-size: 12px;
}
.workspace-task-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
@@ -646,6 +813,109 @@
grid-template-columns: minmax(260px, 1fr) 80px 160px 80px;
}
.project-file-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 8px 18px;
}
.project-file-grid.compact {
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.project-file-tile {
min-width: 0;
height: 76px;
display: grid;
grid-template-columns: 56px minmax(0, 1fr);
align-items: center;
gap: 12px;
border: 1px solid transparent;
border-radius: 3px;
background: transparent;
color: var(--senlin-text);
padding: 8px 10px;
text-align: left;
cursor: pointer;
}
.project-file-tile:hover,
.project-file-tile:focus-visible {
border-color: #bfdbff;
background: #e8f3ff;
outline: none;
}
.theme-dark .project-file-tile:hover,
.theme-dark .project-file-tile:focus-visible {
border-color: color-mix(in srgb, var(--senlin-primary) 56%, var(--senlin-border));
background: color-mix(in srgb, var(--senlin-primary) 18%, var(--senlin-surface));
}
.project-file-icon {
width: 54px;
height: 54px;
display: inline-grid;
place-items: center;
border-radius: 6px;
background: #eef2f7;
color: #4e5969;
font-size: 30px;
}
.project-file-icon.folder {
background: #fff3cf;
color: #f0a020;
}
.project-file-icon.pdf {
background: #fff1f0;
color: #f53f3f;
}
.project-file-icon.sheet {
background: #e8ffea;
color: #00b42a;
}
.project-file-icon.doc,
.project-file-icon.note {
background: #e8f3ff;
color: #165dff;
}
.project-file-icon.image {
background: #f2f3f5;
color: #86909c;
}
.project-file-copy {
min-width: 0;
display: grid;
gap: 2px;
}
.project-file-name,
.project-file-type,
.project-file-meta {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.project-file-name {
color: var(--senlin-text);
font-size: 14px;
font-weight: 500;
}
.project-file-type,
.project-file-meta {
color: var(--senlin-muted);
font-size: 12px;
}
.project-channel-page {
min-width: 0;
}
@@ -815,6 +1085,10 @@
padding: 12px;
}
.channel-editor-card .arco-card-body {
padding: 14px;
}
.action-modal .arco-modal-content {
border-radius: 8px;
}