0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 03:35:05 +02:00

tweak styles for dashboard group list

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-22 19:21:28 -05:00
parent 70a3f779f1
commit eeba95f6e0
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C
2 changed files with 6 additions and 4 deletions

View File

@ -60,7 +60,6 @@
}
.expandable-menu-item label > .collapse-icon {
position: relative;
top: 2px;
display: none;
}
@ -88,3 +87,7 @@ li.expandable-menu-item.item:only-child, li.expandable-menu-item.item:last-child
ul.expandable-menu ul li.expandable-menu-item {
margin-top: 1rem;
}
ul.expandable-ul {
padding: 0;
margin: 0;
}

View File

@ -67,7 +67,7 @@ const active = computed(() => isGroup.value && expandedGroups.value.includes(id.
<template>
<li class="tw-flex tw-flex-col tw-px-0 tw-pr-0 expandable-menu-item tw-mt-0" :data-sort-id="idKey" :data-is-group="isGroup" :data-id="id">
<label
class="tw-flex tw-items-center tw-py-2"
class="tw-flex tw-content-center tw-py-2 tw-space-x-1.5"
:style="indentCss"
:class="{
'has-children': !!item.repos?.length || !!item.subgroups?.length || isGroup,
@ -77,7 +77,7 @@ const active = computed(() => isGroup.value && expandedGroups.value.includes(id.
<svg-icon :name="icon(item)" :size="16" class-name="repo-list-icon"/>
<svg-icon v-if="isGroup" name="octicon-chevron-right" :size="16" class="collapse-icon"/>
<a :href="item.link" class="repo-list-link muted tw-flex-shrink">
<div class="text truncate">{{ item.full_name || item.name }}</div>
<div class="text truncate tw-flex-shrink">{{ item.full_name || item.name }}</div>
<div v-if="item.archived">
<svg-icon name="octicon-archive" :size="16"/>
</div>
@ -100,7 +100,6 @@ const active = computed(() => isGroup.value && expandedGroups.value.includes(id.
/* for text truncation */
display: flex;
align-items: center;
flex: 1;
gap: 0.5rem;
}
</style>