style improvements

AuthorKonata <konata@posteo.jp>
Date
Commit05c76b4034278835235390397852c8404528fcaa
Parentfa83468
3 files changed, 16 insertions(+), 14 deletions(-)
Msrc/styles/main.css
@@ -1045,6 +1045,12 @@
10451045 border-bottom: 1px solid var(--color-border);
10461046 line-height: 1.3;
10471047 }
1048+ .commit-card-subject-empty {
1049+ color: var(--color-text-muted);
1050+ font-style: italic;
1051+ font-weight: 400;
1052+ font-size: var(--text-sm);
1053+ }
10481054 .commit-card-body {
10491055 padding: var(--space-4) var(--space-6);
10501056 font-family: inherit;
@@ -1596,8 +1602,9 @@
15961602 .issue-detail-header {
15971603 display: flex;
15981604 align-items: center;
1605+ flex-wrap: wrap;
15991606 gap: var(--space-3);
1600- margin-bottom: var(--space-6);
1607+ margin-bottom: var(--space-4);
16011608 }
16021609 .issue-number {
16031610 font-size: var(--text-2xl);
@@ -1614,6 +1621,7 @@
16141621 margin-left: auto;
16151622 display: flex;
16161623 gap: var(--space-2);
1624+ flex-shrink: 0;
16171625 }
16181626 .patch-author-meta {
16191627 display: flex;
@@ -1754,7 +1762,7 @@
17541762 }
17551763 .title-with-edit {
17561764 flex: 1;
1757- min-width: 0;
1765+ min-width: 16rem;
17581766 display: flex;
17591767 flex-direction: column;
17601768 gap: var(--space-1);
@@ -2226,7 +2234,7 @@
22262234 color: #fff;
22272235 }
22282236 .btn-danger:hover {
2229- filter: brightness(0.9);
2237+ background: color-mix(in srgb, var(--color-danger) 85%, #000);
22302238 }
22312239
22322240 /* --- Release list items --- */
Msrc/views/patches/PatchDetail.tsx
@@ -214,14 +214,6 @@ export function PatchDetail({
214214 </div>
215215 )}
216216 </div>
217- <div class="patch-author-meta">
218- <span class="patch-author-label">git author:</span>
219- <span class="patch-author-identity">
220- {escapeHtml(
221- `${patch.author_name} <${patch.author_email}>`,
222- )}
223- </span>
224- </div>
225217 </div>
226218
227219 {/* Subview tabs */}
@@ -459,8 +451,8 @@ export function PatchDetail({
459451 ) : (
460452 <div>
461453 <div class="commit-card">
462- <h2 class="commit-card-subject">
463- {escapeHtml(patchMeta.subject)}
454+ <h2 class={`commit-card-subject${patchMeta.subject ? "" : " commit-card-subject-empty"}`}>
455+ {patchMeta.subject ? escapeHtml(patchMeta.subject) : "No commit message"}
464456 </h2>
465457 {patchMeta.body && (
466458 <pre class="commit-card-body">
Msrc/views/repos/CommitDetail.tsx
@@ -49,7 +49,9 @@ export function CommitDetail({
4949
5050 {/* Commit metadata card */}
5151 <div class="commit-card">
52- <h2 class="commit-card-subject">{meta.subject}</h2>
52+ <h2 class={`commit-card-subject${meta.subject ? "" : " commit-card-subject-empty"}`}>
53+ {meta.subject || "No commit message"}
54+ </h2>
5355 {meta.body && (
5456 <pre class="commit-card-body">{meta.body}</pre>
5557 )}