Skip to content

Commit 7d5a86e

Browse files
authored
Clean up wiki profile card (#989)
1 parent 0e4bc0b commit 7d5a86e

3 files changed

Lines changed: 32 additions & 5 deletions

File tree

src/components/Cards/CreateWikiWizardStepThree.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@
8383
</v-form>
8484
</v-card-text>
8585
<v-card-actions>
86-
<v-spacer></v-spacer>
87-
8886
<v-btn
8987
type="button"
9088
:disabled="inFlight"
@@ -139,3 +137,11 @@ export default {
139137
140138
}
141139
</script>
140+
141+
<style lang="css" scoped>
142+
.v-card__actions {
143+
flex-wrap: wrap;
144+
justify-content: flex-end;
145+
gap: 8px;
146+
}
147+
</style>

src/components/Cards/CreateWikiWizardStepTwo.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
</v-card-text>
104104

105105
<v-card-actions>
106-
<v-spacer></v-spacer>
107106
<v-btn v-if="$listeners['previous-step']" type="button" :disabled="inFlight" @click="$emit('previous-step')">
108107
&lt; PREVIOUS
109108
</v-btn>
@@ -150,3 +149,11 @@ export default {
150149
}
151150
}
152151
</script>
152+
153+
<style lang="css" scoped>
154+
.v-card__actions {
155+
flex-wrap: wrap;
156+
justify-content: flex-end;
157+
gap: 8px;
158+
}
159+
</style>

src/components/Pages/ManageWiki/Cards/Profile.vue

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,20 @@ export default {
147147
},
148148
updatedAt: function () {
149149
if (this.profile?.updated_at) {
150-
return `Last updated on ${new Date(this.profile.updated_at).toLocaleString()}`
150+
const rawDate = new Date(this.profile.updated_at)
151+
const date = new Intl.DateTimeFormat('en-GB', {
152+
timeZone: 'UTC',
153+
day: '2-digit',
154+
month: 'long',
155+
year: 'numeric'
156+
}).format(rawDate)
157+
const time = new Intl.DateTimeFormat('en-GB', {
158+
timeZone: 'UTC',
159+
hour: '2-digit',
160+
minute: '2-digit',
161+
hour12: false
162+
}).format(rawDate)
163+
return `Last updated on ${date}, at ${time} (UTC)`
151164
}
152165
return false
153166
}
@@ -229,13 +242,14 @@ export default {
229242
padding-top: 0;
230243
}
231244
.no-profile-banner {
245+
display: flex;
246+
align-items: flex-start;
232247
background-color: rgba(255, 236, 179, 1);
233248
border-radius: 4px;
234249
padding: 8px 16px;
235250
font-size: 16px;
236251
}
237252
.no-profile-banner > .v-icon {
238-
float: left;
239253
margin-right: 16px;
240254
}
241255
.profile {

0 commit comments

Comments
 (0)