Skip to content

Commit

Permalink
Remove Wikit MenuItem import
Browse files Browse the repository at this point in the history
Bug: T356172
  • Loading branch information
guergana committed Jan 30, 2024
1 parent f823038 commit 3eba5b0
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions resources/js/Components/MismatchRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
v-if="mismatch.wikidata_value === ''"
>
{{ $i18n('empty-value') }}
</span>
</span>
<a
v-else
class="break-line-link"
Expand Down Expand Up @@ -108,7 +108,7 @@
>
<a
class="uploader"
:href="`https://www.wikidata.org/wiki/User:${mismatch.import_meta.user.username}`"
:href="`https://www.wikidata.org/wiki/User:${mismatch.import_meta.user.username}`"
target="_blank"
>
{{ mismatch.import_meta.user.username }}
Expand All @@ -126,12 +126,17 @@
import { formatISO } from 'date-fns';
import { computed, ref } from 'vue';
import { CdxButton, CdxDialog, CdxSelect } from "@wikimedia/codex";
import { MenuItem } from '@wmde/wikit-vue-components/dist/components/MenuItem';
import { LabelledMismatch, ReviewDecision } from "../types/Mismatch";
import { useI18n } from 'vue-banana-i18n';
const truncateLength = 100;
type MenuItem = {
label: string;
description: string;
tag?: string;
}
interface ReviewMenuItem extends MenuItem {
value: ReviewDecision;
}
Expand Down Expand Up @@ -193,18 +198,22 @@ function showDialog(e: Event) {
<style lang="scss">
@import "@wikimedia/codex-design-tokens/theme-wikimedia-ui";
a {
break-line-link {
width: 100%
}
}
a {
break-line-link {
width: 100%
}
}
.full-description-button {
padding: 0 2px;
font-weight: 400;
}
.full-description-button {
padding: 0 2px;
font-weight: 400;
}
.empty-value {
color: $color-disabled;
}
.empty-value {
color: $color-disabled;
}
.cdx-menu-item {
margin: 0;
}
</style>

0 comments on commit 3eba5b0

Please sign in to comment.