Skip to content

Commit af2fb37

Browse files
committed
secrets: capitalize user's name, minor style fixes
1 parent 46e0315 commit af2fb37

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

src/routes/team/[team]/[env]/secret/[secret]/+page.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
<h5>Last modified by</h5>
213213
<div class="metadata-value">
214214
{#if secret.lastModifiedBy}
215-
{secret.lastModifiedBy.name} ({secret.lastModifiedBy.email})
215+
<span class="cap">{secret.lastModifiedBy.name}</span> ({secret.lastModifiedBy.email})
216216
{:else}
217217
<code>n/a</code>
218218
{/if}
@@ -324,4 +324,8 @@
324324
code {
325325
font-size: 1rem;
326326
}
327+
328+
.cap {
329+
text-transform: capitalize;
330+
}
327331
</style>

src/routes/team/[team]/[env]/secret/[secret]/AddSecretKv.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
<Modal bind:open width="small">
5757
<svelte:fragment slot="header">
58-
<Heading>New row</Heading>
58+
<Heading>Add new key and value</Heading>
5959
</svelte:fragment>
6060
<div class="entry">
6161
<TextField size="small" htmlSize={30} bind:value={key} error={validationError(key)}>

src/routes/team/[team]/[env]/secret/[secret]/SecretKv.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@
127127

128128
<style>
129129
h4 {
130-
font-weight: var(--a-font-weight-bold);
131130
display: block;
132-
width: 17rem;
133-
word-wrap: break-word;
131+
font-family: monospace;
134132
font-size: var(--a-font-size-medium);
135-
padding: 0 var(--a-spacing-2);
136-
min-height: 2rem;
137133
line-height: 2rem;
134+
min-height: 2rem;
135+
padding: 0 var(--a-spacing-2);
136+
width: 17rem;
137+
word-wrap: break-word;
138138
}
139139
140140
.entry {

0 commit comments

Comments
 (0)