mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Implement new design
Co-authored-by: dnlklmn <pelicansinberlin@gmail.com> Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--color-secondary-5);
|
||||
box-shadow: 0 0 0 1px var(--color-border-hint);
|
||||
border-radius: var(--border-radius-small);
|
||||
min-width: 36rem;
|
||||
cursor: pointer;
|
||||
background: var(--color-background-1);
|
||||
background: var(--color-background-float);
|
||||
}
|
||||
.right {
|
||||
display: flex;
|
||||
@@ -55,40 +55,34 @@
|
||||
.activity {
|
||||
width: 100%;
|
||||
max-width: 14rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
.project:hover {
|
||||
border-color: var(--color-secondary);
|
||||
background-color: var(--color-secondary-1);
|
||||
box-shadow: 0 0 0 2px var(--color-border-focus);
|
||||
}
|
||||
.description {
|
||||
margin-bottom: 0.25rem;
|
||||
font-size: var(--font-size-tiny);
|
||||
}
|
||||
.stateHash {
|
||||
color: var(--color-secondary);
|
||||
font-size: var(--font-size-tiny);
|
||||
font-family: var(--font-family-monospace);
|
||||
min-height: 2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: var(--font-size-small);
|
||||
}
|
||||
.id {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: var(--font-size-regular);
|
||||
font-size: var(--font-size-medium);
|
||||
font-weight: var(--font-weight-medium);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.rid {
|
||||
visibility: hidden;
|
||||
color: var(--color-foreground-5);
|
||||
font-weight: var(--font-weight-normal);
|
||||
color: var(--color-fill-secondary);
|
||||
font-family: var(--font-family-monospace);
|
||||
font-size: var(--font-size-tiny);
|
||||
}
|
||||
.project:hover .rid {
|
||||
visibility: visible;
|
||||
}
|
||||
.text {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
flex-direction: column;
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.project {
|
||||
min-width: 0;
|
||||
@@ -98,17 +92,18 @@
|
||||
|
||||
<div class="project" class:compact>
|
||||
<div class="left">
|
||||
<div class="id">
|
||||
<span class="name">{name}</span>
|
||||
</div>
|
||||
<div class="description" use:twemoji>{description}</div>
|
||||
<div class="stateHash">
|
||||
{#if compact}
|
||||
{formatCommit(head)}
|
||||
{:else}
|
||||
{head}
|
||||
{/if}
|
||||
<div class="text">
|
||||
<div class="id">{name}</div>
|
||||
<div class="description" use:twemoji>{description}</div>
|
||||
<div class="global-hash">
|
||||
{#if compact}
|
||||
{formatCommit(head)}
|
||||
{:else}
|
||||
{head}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#if compact}
|
||||
<div class="activity">
|
||||
<ActivityDiagram {activity} viewBoxHeight={70} />
|
||||
|
||||
Reference in New Issue
Block a user