mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 17:14:50 +00:00
* refactor: migrate to common eslint+prettier configs
* fix: prettier frontend
* feat: config changes
* fix: lint issues
* fix: lint
* fix: type imports
* fix: cyclical import issue
* fix: lockfile
* fix: missing dep
* fix: switch to tabs
* fix: continue switch to tabs
* fix: rustfmt parity
* fix: moderation lint issue
* fix: lint issues
* fix: ui intl
* fix: lint issues
* Revert "fix: rustfmt parity"
This reverts commit cb99d2376c.
* feat: revert last rs
35 lines
559 B
Vue
35 lines
559 B
Vue
<template>
|
|
<div class="double-icon">
|
|
<slot name="primary" />
|
|
<div class="secondary">
|
|
<slot name="secondary" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
.double-icon {
|
|
position: relative;
|
|
height: fit-content;
|
|
line-height: 0;
|
|
|
|
.secondary {
|
|
position: absolute;
|
|
bottom: -4px;
|
|
right: -4px;
|
|
background-color: var(--color-bg);
|
|
padding: var(--spacing-card-xs);
|
|
border-radius: 50%;
|
|
aspect-ratio: 1 / 1;
|
|
width: fit-content;
|
|
height: fit-content;
|
|
line-height: 0;
|
|
|
|
svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
}
|
|
}
|
|
}
|
|
</style>
|