mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Fix some style regressions in patch view
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -7,14 +7,14 @@
|
||||
|
||||
<style>
|
||||
.error {
|
||||
padding: 1rem;
|
||||
font-size: var(--font-size-regular);
|
||||
font-family: var(--font-family-sans-serif);
|
||||
color: var(--color-negative);
|
||||
border-radius: var(--border-radius);
|
||||
background-color: var(--color-negative-3);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: var(--color-negative-3);
|
||||
border-radius: inherit;
|
||||
color: var(--color-negative);
|
||||
display: flex;
|
||||
font-family: var(--font-family-sans-serif);
|
||||
font-size: inherit;
|
||||
padding: 1rem;
|
||||
width: 100%;
|
||||
}
|
||||
.stack-trace {
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
<style>
|
||||
.action {
|
||||
border-radius: var(--border-radius-small);
|
||||
min-height: 3rem;
|
||||
}
|
||||
.merge {
|
||||
background-color: var(--color-primary-3);
|
||||
@@ -91,10 +92,16 @@
|
||||
color: var(--color-positive-6);
|
||||
background-color: var(--color-positive-3);
|
||||
}
|
||||
.comment-review {
|
||||
background-color: var(--color-foreground-1);
|
||||
}
|
||||
.negative-review {
|
||||
color: var(--color-negative-6);
|
||||
background-color: var(--color-negative-3);
|
||||
}
|
||||
.diff-error {
|
||||
margin: 1rem 1.5rem;
|
||||
}
|
||||
.revision {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -315,14 +322,16 @@
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{#if error}
|
||||
<div class="txt-monospace">
|
||||
<ErrorMessage
|
||||
message="Failed to load diff for this revision."
|
||||
stackTrace={error.stack.toString()} />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{#if error}
|
||||
<div
|
||||
class="diff-error txt-monospace txt-small"
|
||||
style:border-radius="var(--border-radius-small">
|
||||
<ErrorMessage
|
||||
message="Failed to load diff for this revision."
|
||||
stackTrace={error.stack.toString()} />
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{#if expanded}
|
||||
@@ -361,6 +370,7 @@
|
||||
{#if review.comment}
|
||||
<div
|
||||
class="action"
|
||||
class:comment-review={review.verdict === null}
|
||||
class:positive-review={review.verdict === "accept"}
|
||||
class:negative-review={review.verdict === "reject"}>
|
||||
<CommentComponent
|
||||
@@ -378,7 +388,8 @@
|
||||
</div>
|
||||
{:else}
|
||||
<div
|
||||
class="action layout-desktop txt-tiny"
|
||||
class="action layout-desktop-flex txt-tiny"
|
||||
class:comment-review={review.verdict === null}
|
||||
class:positive-review={review.verdict === "accept"}
|
||||
class:negative-review={review.verdict === "reject"}>
|
||||
<Authorship
|
||||
@@ -390,7 +401,8 @@
|
||||
</Authorship>
|
||||
</div>
|
||||
<div
|
||||
class="action layout-mobile txt-tiny"
|
||||
class="action layout-mobile-flex txt-tiny"
|
||||
class:comment-review={review.verdict === null}
|
||||
class:positive-review={review.verdict === "accept"}
|
||||
class:negative-review={review.verdict === "reject"}>
|
||||
<Authorship
|
||||
|
||||
Reference in New Issue
Block a user