diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-05-06 15:17:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 07:17:22 +0000 |
commit | eda10cc2bb229a6b13ace76caea118384b381429 (patch) | |
tree | 50bb4a2e07cc88e56d92ecd60deb9ba79069bcb8 /web_src/js | |
parent | ce8b11ae131bef6cd7df0849ed39da7984953a4b (diff) | |
download | gitea-eda10cc2bb229a6b13ace76caea118384b381429.tar.gz gitea-eda10cc2bb229a6b13ace76caea118384b381429.zip |
Fix some UI problems (dropdown/container) (#30849)
Follow #30345
Follow #30547
`ellipsis` / `white-space` shouldn't be put on the general dropdown components.
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/components/RepoBranchTagSelector.vue | 4 | ||||
-rw-r--r-- | web_src/js/features/repo-issue.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue index 8a741b68da..87530225e3 100644 --- a/web_src/js/components/RepoBranchTagSelector.vue +++ b/web_src/js/components/RepoBranchTagSelector.vue @@ -246,7 +246,7 @@ export function initRepoBranchTagSelector(selector) { export default sfc; // activate IDE's Vue plugin </script> <template> - <div class="ui dropdown custom branch-selector-dropdown"> + <div class="ui dropdown custom branch-selector-dropdown ellipsis-items-nowrap"> <div class="ui button branch-dropdown-button" @click="menuVisible = !menuVisible" @keyup.enter="menuVisible = !menuVisible"> <span class="flex-text-block gt-ellipsis"> <template v-if="release">{{ textReleaseCompare }}</template> @@ -280,7 +280,7 @@ export default sfc; // activate IDE's Vue plugin <div class="ui label" v-if="item.name===repoDefaultBranch && mode === 'branches'"> {{ textDefaultBranchLabel }} </div> - <a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon tw-float-right" :href="rssURLPrefix + item.url" target="_blank" @click.stop> + <a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon" :href="rssURLPrefix + item.url" target="_blank" @click.stop> <!-- creating a lot of Vue component is pretty slow, so we use a static SVG here --> <svg width="14" height="14" class="svg octicon-rss"><use href="#svg-symbol-octicon-rss"/></svg> </a> diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js index d10d4dab8d..8ee681aedc 100644 --- a/web_src/js/features/repo-issue.js +++ b/web_src/js/features/repo-issue.js @@ -124,8 +124,8 @@ export function initRepoIssueSidebarList() { return; } filteredResponse.results.push({ - name: `#${issue.number} ${htmlEscape(issue.title) - }<div class="text small gt-word-break">${htmlEscape(issue.repository.full_name)}</div>`, + name: `<div class="gt-ellipsis">#${issue.number} ${htmlEscape(issue.title)}</div> +<div class="text small gt-word-break">${htmlEscape(issue.repository.full_name)}</div>`, value: issue.id, }); }); |