Skip to content

Commit 7ccb748

Browse files
authored
Remove Wikit MenuItem import (#865)
Bug: T356172
1 parent bf617dd commit 7ccb748

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

resources/js/Components/MismatchRow.vue

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
v-if="mismatch.wikidata_value === ''"
2424
>
2525
{{ $i18n('empty-value') }}
26-
</span>
26+
</span>
2727
<a
2828
v-else
2929
class="break-line-link"
@@ -108,7 +108,7 @@
108108
>
109109
<a
110110
class="uploader"
111-
:href="`https://www.wikidata.org/wiki/User:${mismatch.import_meta.user.username}`"
111+
:href="`https://www.wikidata.org/wiki/User:${mismatch.import_meta.user.username}`"
112112
target="_blank"
113113
>
114114
{{ mismatch.import_meta.user.username }}
@@ -126,12 +126,17 @@
126126
import { formatISO } from 'date-fns';
127127
import { computed, ref } from 'vue';
128128
import { CdxButton, CdxDialog, CdxSelect } from "@wikimedia/codex";
129-
import { MenuItem } from '@wmde/wikit-vue-components/dist/components/MenuItem';
130129
import { LabelledMismatch, ReviewDecision } from "../types/Mismatch";
131130
import { useI18n } from 'vue-banana-i18n';
132131
133132
const truncateLength = 100;
134133
134+
type MenuItem = {
135+
label: string;
136+
description: string;
137+
tag?: string;
138+
}
139+
135140
interface ReviewMenuItem extends MenuItem {
136141
value: ReviewDecision;
137142
}
@@ -193,18 +198,16 @@ function showDialog(e: Event) {
193198
<style lang="scss">
194199
@import "@wikimedia/codex-design-tokens/theme-wikimedia-ui";
195200
196-
a {
197-
break-line-link {
198-
width: 100%
199-
}
200-
}
201+
.full-description-button {
202+
padding: 0 2px;
203+
font-weight: 400;
204+
}
201205
202-
.full-description-button {
203-
padding: 0 2px;
204-
font-weight: 400;
205-
}
206+
.empty-value {
207+
color: $color-disabled;
208+
}
206209
207-
.empty-value {
208-
color: $color-disabled;
209-
}
210+
.cdx-menu-item {
211+
margin: 0;
212+
}
210213
</style>

0 commit comments

Comments
 (0)