add keybinds to copy/open prod links (#7294)

This commit is contained in:
Prospector
2026-08-24 16:29:36 -07:00
committed by GitHub
parent 4b5edb9a99
commit ad83117ebf
7 changed files with 122 additions and 16 deletions
@@ -1,10 +1,14 @@
<template>
<div>
<span class="flex flex-row items-center gap-2 text-sm text-secondary">
<GlobeIcon
<BoxIcon
v-if="props.scope === 'project'"
v-tooltip="'Can be used without the checklist open if setting enabled.'"
/>
<GlobeIcon
v-if="props.scope === 'global'"
v-tooltip="'Can be used anywhere on the website.'"
/>
<ShieldCheckIcon
v-if="props.scope === 'tech-review'"
v-tooltip="'Used within the tech review pages'"
@@ -49,7 +53,7 @@
</template>
<script setup lang="ts">
import { GlobeIcon, RotateCounterClockwiseIcon, ShieldCheckIcon } from '@modrinth/assets'
import { BoxIcon, GlobeIcon, RotateCounterClockwiseIcon, ShieldCheckIcon } from '@modrinth/assets'
import { type KeybindDefinition, toKeybindDefinition } from '@modrinth/moderation'
import { IconButton } from '@modrinth/ui'
import { onUnmounted } from 'vue'