mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-12 22:10:25 +00:00
fix(ui): fix dashboard some style issues (#11461)
1. Remove excess left and right margins 2. Remove excess bottom margin 3. Fixed the missing top rounded corner when repo is 0 | Before | After | |----|----| |  |  | |  |  | |  |  | Co-authored-by: 0ko <0ko@noreply.codeberg.org> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11461 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: panc <pan0xc@foxmail.com> Co-committed-by: panc <pan0xc@foxmail.com>
This commit is contained in:
parent
44501c80eb
commit
b921d5bdb3
3 changed files with 7 additions and 4 deletions
|
|
@ -57,7 +57,7 @@
|
|||
|
||||
.dashboard .dashboard-repos,
|
||||
.dashboard .dashboard-orgs {
|
||||
margin: 0 1px; /* Accommodate for Semantic's 1px hacks on .attached elements */
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.dashboard .secondary-nav {
|
||||
|
|
|
|||
|
|
@ -165,6 +165,11 @@
|
|||
margin-top: 1rem;
|
||||
border-radius: 0.28571429rem 0.28571429rem 0 0;
|
||||
}
|
||||
|
||||
.ui.top.attached.segment:only-child {
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.ui.segment[class*="top attached"]:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ export default {
|
|||
</div>
|
||||
</overflow-menu>
|
||||
</div>
|
||||
<div v-if="repos.length" class="ui attached table segment tw-rounded-b">
|
||||
<div v-if="repos.length" class="ui attached table segment">
|
||||
<ul class="repo-owner-name-list">
|
||||
<li class="tw-flex tw-items-center tw-py-2" v-for="repo, index in repos" :class="{'active': index === activeIndex}" :key="repo.id">
|
||||
<a class="repo-list-link muted" :href="repo.link">
|
||||
|
|
@ -482,10 +482,8 @@ ul li:not(:last-child) {
|
|||
}
|
||||
|
||||
.repos-filter {
|
||||
padding-top: 0 !important;
|
||||
margin-top: 0 !important;
|
||||
border-bottom-width: 0 !important;
|
||||
margin-bottom: 2px !important;
|
||||
}
|
||||
|
||||
.repos-filter .item {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue