Skip to content

Commit bb1eedd

Browse files
committed
Using line-height normal to fix overflow issue
1 parent 314ceee commit bb1eedd

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

templates/repo/branch_dropdown.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}
7272
<div class="ui dropdown custom">
7373
<button class="branch-dropdown-button ui basic small compact button gt-df gt-m-0">
74-
<span class="text gt-df gt-ac gt-overflow-x-auto gt-items-stretch">
74+
<span class="text gt-df gt-ac gt-items-stretch gt-overflow-x-hidden gt-line-height-normal">
7575
{{if .release}}
7676
{{ctx.Locale.Tr "repo.release.compare"}}
7777
{{else}}

web_src/css/helpers.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Gitea's private styles use `g-` prefix.
55
.gt-df { display: flex !important; }
66
.gt-dib { display: inline-block !important; }
77
.gt-ac { align-items: center !important; }
8-
.gt-items-stretch { align-items: stretch !important; }
98
.gt-jc { justify-content: center !important; }
109
.gt-je { justify-content: flex-end !important; }
1110
.gt-sb { justify-content: space-between !important; }
@@ -15,6 +14,7 @@ Gitea's private styles use `g-` prefix.
1514
.gt-vm { vertical-align: middle !important; }
1615
.gt-w-100 { width: 100% !important; }
1716
.gt-h-100 { height: 100% !important; }
17+
.gt-line-height-normal { line-height: normal !important;}
1818

1919
.gt-mono {
2020
font-family: var(--fonts-monospace) !important;
@@ -59,6 +59,7 @@ Gitea's private styles use `g-` prefix.
5959
.gt-cursor-pointer { cursor: pointer !important; }
6060
.gt-cursor-grab { cursor: grab !important; }
6161
.gt-invisible { visibility: hidden !important; }
62+
.gt-items-stretch { align-items: stretch !important; }
6263
.gt-items-start { align-items: flex-start !important; }
6364
.gt-pointer-events-none { pointer-events: none !important; }
6465
.gt-relative { position: relative !important; }
@@ -74,6 +75,7 @@ Gitea's private styles use `g-` prefix.
7475
.gt-normal-case { text-transform: none !important; }
7576
.gt-italic { font-style: italic !important; }
7677
.gt-overflow-x-auto { overflow-x: auto !important; }
78+
.gt-overflow-x-hidden { overflow-x: hidden !important; }
7779
.gt-overflow-x-scroll { overflow-x: scroll !important; }
7880
.gt-overflow-y-hidden { overflow-y: hidden !important; }
7981

web_src/js/components/RepoBranchTagSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export default sfc; // activate IDE's Vue plugin
246246
<template>
247247
<div class="ui dropdown custom">
248248
<button class="branch-dropdown-button ui basic small compact button gt-df gt-m-0" @click="menuVisible = !menuVisible" @keyup.enter="menuVisible = !menuVisible">
249-
<span class="text gt-df gt-ac gt-overflow-x-auto gt-items-stretch">
249+
<span class="text gt-df gt-ac gt-items-stretch gt-overflow-x-hidden gt-line-height-normal">
250250
<template v-if="release">{{ textReleaseCompare }}</template>
251251
<template v-else>
252252
<svg-icon v-if="isViewTag" name="octicon-tag"/>

0 commit comments

Comments
 (0)