You've already forked AstralRinth
forked from xxxOFFxxx/AstralRinth
Overflow and mrpack fixes, comfortable memory slider and more. (#762)
* Add overflow rules for certain elements. * Round scrollbar corners to be more attractive. * Avoid corners in avatar & fix white corner in logs * Increase step to 64 for memory related inputs. * Fix overflow on title in mod browse. Fixes #740 * Fix overflow in instance mod browsing. * Add checks for instances without versions.
This commit is contained in:
@@ -161,7 +161,13 @@ const breadcrumbs = useBreadcrumbs()
|
||||
|
||||
const instance = ref(await get(route.params.id).catch(handleError))
|
||||
|
||||
breadcrumbs.setName('Instance', instance.value.metadata.name)
|
||||
breadcrumbs.setName(
|
||||
'Instance',
|
||||
instance.value.metadata.name.length > 40
|
||||
? instance.value.metadata.name.substring(0, 40) + '...'
|
||||
: instance.value.metadata.name
|
||||
)
|
||||
|
||||
breadcrumbs.setContext({
|
||||
name: instance.value.metadata.name,
|
||||
link: route.path,
|
||||
@@ -203,7 +209,7 @@ const checkProcess = async () => {
|
||||
|
||||
// Get information on associated modrinth versions, if any
|
||||
const modrinthVersions = ref([])
|
||||
if (!(await isOffline()) && instance.value.metadata.linked_data) {
|
||||
if (!(await isOffline()) && instance.value.metadata.linked_data?.project_id) {
|
||||
modrinthVersions.value = await useFetch(
|
||||
`https://api.modrinth.com/v2/project/${instance.value.metadata.linked_data.project_id}/version`,
|
||||
'project'
|
||||
@@ -366,6 +372,8 @@ Button {
|
||||
.name {
|
||||
font-size: 1.25rem;
|
||||
color: var(--color-contrast);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.metadata {
|
||||
|
||||
Reference in New Issue
Block a user