Skip to content

Update RepoContributors.vue #34194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 14, 2025
Merged
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
7 changes: 6 additions & 1 deletion web_src/fomantic/build/components/dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,11 @@ select.ui.dropdown {
border-radius: 0.28571429rem !important;
}

/* GITEA-PATCH: gitea also have "right menu" support */
.ui.dropdown > .right.menu {
left: auto;
right: 0;
}
/* Leftward Opening Menu */
.ui.dropdown > .left.menu {
left: auto !important;
Expand Down Expand Up @@ -1367,7 +1372,7 @@ select.ui.dropdown {
}
.ui.simple.dropdown .menu {
position: absolute;

/* IE hack to make dropdown icons appear inline */
display: -ms-inline-flexbox !important;
display: block;
Expand Down
4 changes: 2 additions & 2 deletions web_src/js/components/RepoContributors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,11 @@ export default defineComponent({
<div>
<!-- Contribution type -->
<div class="ui dropdown jump" id="repo-contributors">
<div class="ui basic compact button">
<div class="ui basic compact button tw-mr-0">
<span class="not-mobile">{{ locale.filterLabel }}</span> <strong>{{ locale.contributionType[type] }}</strong>
<svg-icon name="octicon-triangle-down" :size="14"/>
</div>
<div class="menu">
<div class="right menu">
<div :class="['item', {'selected': type === 'commits'}]" data-value="commits">
{{ locale.contributionType.commits }}
</div>
Expand Down