mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
use modrinth logo in header for compactness
This commit is contained in:
@@ -47,6 +47,7 @@ import {
|
|||||||
provideNotificationManager,
|
provideNotificationManager,
|
||||||
providePageContext,
|
providePageContext,
|
||||||
providePopupNotificationManager,
|
providePopupNotificationManager,
|
||||||
|
TextLogo,
|
||||||
useDebugLogger,
|
useDebugLogger,
|
||||||
useFormatBytes,
|
useFormatBytes,
|
||||||
useHostingIntercom,
|
useHostingIntercom,
|
||||||
@@ -64,7 +65,6 @@ import { saveWindowState, StateFlags } from '@tauri-apps/plugin-window-state'
|
|||||||
import { computed, onMounted, onUnmounted, provide, ref, watch } from 'vue'
|
import { computed, onMounted, onUnmounted, provide, ref, watch } from 'vue'
|
||||||
import { RouterView, useRoute, useRouter } from 'vue-router'
|
import { RouterView, useRoute, useRouter } from 'vue-router'
|
||||||
|
|
||||||
import ModrinthAppLogo from '@/assets/modrinth_app.svg?component'
|
|
||||||
import AccountsCard from '@/components/ui/AccountsCard.vue'
|
import AccountsCard from '@/components/ui/AccountsCard.vue'
|
||||||
import AppActionBar from '@/components/ui/AppActionBar.vue'
|
import AppActionBar from '@/components/ui/AppActionBar.vue'
|
||||||
import Breadcrumbs from '@/components/ui/Breadcrumbs.vue'
|
import Breadcrumbs from '@/components/ui/Breadcrumbs.vue'
|
||||||
@@ -1640,26 +1640,32 @@ provideAppUpdateDownloadProgress(appUpdateDownload)
|
|||||||
</div>
|
</div>
|
||||||
<div data-tauri-drag-region class="app-grid-statusbar bg-bg-raised h-[--top-bar-height] flex">
|
<div data-tauri-drag-region class="app-grid-statusbar bg-bg-raised h-[--top-bar-height] flex">
|
||||||
<div data-tauri-drag-region class="flex min-w-0 flex-1 items-center overflow-hidden p-2">
|
<div data-tauri-drag-region class="flex min-w-0 flex-1 items-center overflow-hidden p-2">
|
||||||
<ModrinthAppLogo class="h-full w-auto shrink-0 text-contrast pointer-events-none" />
|
<TextLogo class="h-7 w-auto shrink-0 text-contrast pointer-events-none" />
|
||||||
<div data-tauri-drag-region class="ml-4 flex shrink-0 items-center gap-2">
|
<div data-tauri-drag-region class="ml-2 flex shrink-0 items-center gap-2">
|
||||||
<ButtonStyled type="outlined" circular>
|
<ButtonStyled type="outlined" circular>
|
||||||
<button
|
<button
|
||||||
class="!h-8 !min-w-8 !w-8 !border !border-surface-4 !p-0"
|
class="!h-7 !min-w-7 !w-7 !border !border-surface-4 !p-0 !opacity-100"
|
||||||
:disabled="!canNavigateBack"
|
:disabled="!canNavigateBack"
|
||||||
aria-label="Go back"
|
aria-label="Go back"
|
||||||
@click="router.back()"
|
@click="router.back()"
|
||||||
>
|
>
|
||||||
<ChevronLeftIcon class="!size-4 !text-primary" />
|
<ChevronLeftIcon
|
||||||
|
class="!size-4 !text-primary"
|
||||||
|
:class="{ 'opacity-20': !canNavigateBack }"
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
</ButtonStyled>
|
</ButtonStyled>
|
||||||
<ButtonStyled type="outlined" circular>
|
<ButtonStyled type="outlined" circular>
|
||||||
<button
|
<button
|
||||||
class="!h-8 !min-w-8 !w-8 !border !border-surface-4 !p-0"
|
class="!h-7 !min-w-7 !w-7 !border !border-surface-4 !p-0 !opacity-100"
|
||||||
:disabled="!canNavigateForward"
|
:disabled="!canNavigateForward"
|
||||||
aria-label="Go forward"
|
aria-label="Go forward"
|
||||||
@click="router.forward()"
|
@click="router.forward()"
|
||||||
>
|
>
|
||||||
<ChevronRightIcon class="!size-4 !text-primary" />
|
<ChevronRightIcon
|
||||||
|
class="!size-4 !text-primary"
|
||||||
|
:class="{ 'opacity-20': !canNavigateForward }"
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
</ButtonStyled>
|
</ButtonStyled>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {
|
import {
|
||||||
ChangeSkinIcon,
|
|
||||||
CheckIcon,
|
CheckIcon,
|
||||||
EditIcon,
|
EditIcon,
|
||||||
ExcitedRinthbot,
|
ExcitedRinthbot,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"decorations": true,
|
"decorations": true,
|
||||||
"trafficLightPosition": {
|
"trafficLightPosition": {
|
||||||
"x": 15.0,
|
"x": 15.0,
|
||||||
"y": 22.0
|
"y": 26.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ import _BugIcon from './icons/bug.svg?component'
|
|||||||
import _CalendarIcon from './icons/calendar.svg?component'
|
import _CalendarIcon from './icons/calendar.svg?component'
|
||||||
import _CalendarArrowDownIcon from './icons/calendar-arrow-down.svg?component'
|
import _CalendarArrowDownIcon from './icons/calendar-arrow-down.svg?component'
|
||||||
import _CardIcon from './icons/card.svg?component'
|
import _CardIcon from './icons/card.svg?component'
|
||||||
import _ChangeSkinIcon from './icons/change-skin.svg?component'
|
|
||||||
import _ChartIcon from './icons/chart.svg?component'
|
import _ChartIcon from './icons/chart.svg?component'
|
||||||
import _ChartAreaIcon from './icons/chart-area.svg?component'
|
import _ChartAreaIcon from './icons/chart-area.svg?component'
|
||||||
import _ChartColumnBigIcon from './icons/chart-column-big.svg?component'
|
import _ChartColumnBigIcon from './icons/chart-column-big.svg?component'
|
||||||
@@ -499,7 +498,6 @@ export const BugIcon = _BugIcon
|
|||||||
export const CalendarIcon = _CalendarIcon
|
export const CalendarIcon = _CalendarIcon
|
||||||
export const CalendarArrowDownIcon = _CalendarArrowDownIcon
|
export const CalendarArrowDownIcon = _CalendarArrowDownIcon
|
||||||
export const CardIcon = _CardIcon
|
export const CardIcon = _CardIcon
|
||||||
export const ChangeSkinIcon = _ChangeSkinIcon
|
|
||||||
export const ChartIcon = _ChartIcon
|
export const ChartIcon = _ChartIcon
|
||||||
export const ChartAreaIcon = _ChartAreaIcon
|
export const ChartAreaIcon = _ChartAreaIcon
|
||||||
export const ChartColumnBigIcon = _ChartColumnBigIcon
|
export const ChartColumnBigIcon = _ChartColumnBigIcon
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" transform="scale(-1 1)" viewBox="0 0 49.915 52.72">
|
|
||||||
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4.331" d="M15.71 31.484v19.07h18.63v-19.07l6.538 6.539 6.871-6.872-11.203-11.733H14.122L2.166 31.375l6.827 6.827z"/>
|
|
||||||
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.993" d="M24.872 19.548v-6.44"/>
|
|
||||||
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4.331" d="M24.704 13.202a5.518 5.518 0 0 1-5.518-5.518 5.518 5.518 0 0 1 5.518-5.518 5.518 5.518 0 0 1 5.518 5.518"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 695 B |
Reference in New Issue
Block a user