Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/app-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"test": "vue-tsc --noEmit"
},
"dependencies": {
"@dnd-kit/dom": "^0.5.0",
"@dnd-kit/vue": "^0.5.0",
"@modrinth/api-client": "workspace:^",
"@modrinth/assets": "workspace:*",
Expand Down
15 changes: 10 additions & 5 deletions apps/app-frontend/src/app/shell/sidebar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { injectOnboardingChecklist } from '@/providers/onboarding-checklist'

import Promotion from './promotion.vue'

defineProps<{
const props = defineProps<{
credentials: ModrinthCredentials | null | undefined
hasPlus: boolean
showAd: boolean
Expand All @@ -37,6 +37,9 @@ const friends = ref<InstanceType<typeof FriendsList> | null>(null)
const scrollContainer = ref<HTMLElement | null>(null)
const scrollViewport = ref<HTMLElement | null>(null)
const upgradeHeight = ref(0)
const promotionPaddingStyle = computed(() =>
props.showAd ? { paddingBottom: `calc(1rem + ${upgradeHeight.value}px)` } : undefined,
)
const { showTopFade, showBottomFade, checkScrollState } = useScrollIndicator(scrollViewport)

let removeScrollbarListener: (() => void) | undefined
Expand Down Expand Up @@ -103,7 +106,11 @@ const messages = defineMessages({
@login-minecraft="accounts?.login()"
@login-modrinth="emit('login-modrinth')"
/>
<div id="sidebar-teleport-target" class="sidebar-teleport-content contents"></div>
<div
id="sidebar-teleport-target"
class="sidebar-teleport-content empty:hidden"
:style="promotionPaddingStyle"
></div>
<div class="sidebar-default-content hidden" :class="{ 'sidebar-enabled': visible }">
<div
v-show="hasLoggedIntoMinecraft"
Expand Down Expand Up @@ -131,9 +138,7 @@ const messages = defineMessages({
<PrideFundraiserBanner
class="p-4 border-0 border-b-[1px] border-[--brand-gradient-border] border-solid"
/>
<NewsSidebar
:style="showAd ? { paddingBottom: `calc(1rem + ${upgradeHeight}px)` } : undefined"
/>
<NewsSidebar :style="promotionPaddingStyle" />
</div>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { PointerActivationConstraints } from '@dnd-kit/dom'
import { KeyboardSensor, PointerSensor, useDraggable } from '@dnd-kit/vue'
import { CheckIcon, DownloadIcon, PlayIcon, SpinnerIcon, StopCircleIcon } from '@modrinth/assets'
import { defineMessages, IconButton, injectNotificationManager, useVIntl } from '@modrinth/ui'
Expand All @@ -23,7 +24,7 @@ const LOADING_INDICATOR_DELAY_MS = 100

const instanceCardSensors = [
PointerSensor.configure({
preventActivation: () => false,
activationConstraints: [new PointerActivationConstraints.Distance({ value: 5 })],
}),
KeyboardSensor,
]
Expand Down
12 changes: 0 additions & 12 deletions apps/frontend/src/locales/ar-SA/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions apps/frontend/src/locales/cs-CZ/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions apps/frontend/src/locales/da-DK/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions apps/frontend/src/locales/de-CH/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions apps/frontend/src/locales/de-DE/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions apps/frontend/src/locales/en-US/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1007,21 +1007,12 @@
"collection.button.discover-mods": {
"message": "Discover mods"
},
"collection.button.edit-icon": {
"message": "Edit icon"
},
"collection.button.remove-icon": {
"message": "Remove icon"
},
"collection.button.remove-project": {
"message": "Remove project"
},
"collection.button.replace-icon": {
"message": "Replace icon"
},
"collection.button.select-icon": {
"message": "Select icon"
},
"collection.button.unfollow-project": {
"message": "Unfollow project"
},
Expand All @@ -1034,15 +1025,21 @@
"collection.description": {
"message": "{description} - View the collection {name} by {username} on Modrinth"
},
"collection.description-placeholder": {
"message": "This is a collection of..."
},
"collection.description.following": {
"message": "Auto-generated collection of all the projects you're following."
},
"collection.editing": {
"message": "Editing collection"
"collection.edit": {
"message": "Edit collection"
},
"collection.error.not-found": {
"message": "Collection not found"
},
"collection.icon-label": {
"message": "Icon"
},
"collection.label.created-at": {
"message": "Created {ago}"
},
Expand All @@ -1058,6 +1055,9 @@
"collection.label.updated-at": {
"message": "Updated {ago}"
},
"collection.name-placeholder": {
"message": "Enter collection name..."
},
"collection.return-link.dashboard-collections": {
"message": "Your collections"
},
Expand Down
12 changes: 0 additions & 12 deletions apps/frontend/src/locales/es-419/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions apps/frontend/src/locales/es-ES/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions apps/frontend/src/locales/fi-FI/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading