mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Get rid of .error and .error-message global CSS classes
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -51,6 +51,18 @@
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.error {
|
||||
color: var(--color-negative);
|
||||
background-color: var(--color-negative-2);
|
||||
word-wrap: break-word;
|
||||
text-overflow: ellipsis;
|
||||
overflow-x: hidden;
|
||||
padding: 1rem;
|
||||
}
|
||||
.error::selection,
|
||||
.error ::selection {
|
||||
background-color: var(--color-negative);
|
||||
}
|
||||
.content {
|
||||
padding: 0 2rem 0 8rem;
|
||||
}
|
||||
@@ -93,8 +105,8 @@
|
||||
</Async>
|
||||
{/if}
|
||||
{:catch err}
|
||||
<div class="container center-content">
|
||||
<div class="error error-message txt-tiny">
|
||||
<div class="content">
|
||||
<div class="error txt-tiny">
|
||||
<!-- TODO: Differentiate between (1) commit doesn't exist and (2) failed
|
||||
to fetch - this needs a change to the backend. -->
|
||||
API request to
|
||||
|
||||
@@ -63,10 +63,8 @@
|
||||
{:else if state.status === Status.Success}
|
||||
<p>Your registration was successfully updated.</p>
|
||||
{:else if state.status === Status.Failed}
|
||||
<p class="error">
|
||||
<span class="txt-bold">Error:</span>
|
||||
{state.error}
|
||||
</p>
|
||||
<span class="txt-bold">Error:</span>
|
||||
{state.error}
|
||||
{/if}
|
||||
</span>
|
||||
<span slot="actions">
|
||||
@@ -75,7 +73,7 @@
|
||||
{:else if state.status === Status.Success}
|
||||
<Button variant="foreground" on:click={onDone}>Done</Button>
|
||||
{:else if state.status === Status.Failed}
|
||||
<Button variant="foreground" on:click={onClose}>Close</Button>
|
||||
<Button variant="negative" on:click={onClose}>Close</Button>
|
||||
{/if}
|
||||
</span>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user