Skip to content

Commit 27458e1

Browse files
finish tippy styles
1 parent d53a222 commit 27458e1

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

templates/repo/home.tmpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@
118118
{{if $isHomepage}}
119119
<div id="clone-panel">
120120
<button class="ui tiny primary button tw-pr-1 tw-flex js-btn-clone-panel">
121-
{{svg "octicon-code" 16}}
122-
<span>Code</span>
123-
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
121+
<span>{{svg "octicon-code" 16}} Code</span>
122+
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
124123
</button>
125124
<div class="clone-panel tippy-target">
126125
<div class="ui segment">

web_src/css/repo.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
.repository .clone-panel {
137137
display: flex;
138138
flex: 1;
139+
min-width: 200px;
139140
}
140141

141142
.repository.wiki .clone-panel {
@@ -160,18 +161,14 @@
160161
position: relative;
161162
}
162163

163-
.repository .clone-panel .ui.segment {
164+
.clone-panel .ui.segment {
164165
border: none;
165166
}
166167

167168
.repository .clone-panel > button {
168169
border-radius: var(--border-radius) !important;
169170
}
170171

171-
.repository .clone-panel {
172-
min-width: 200px;
173-
}
174-
175172
.clone.tabs {
176173
cursor: pointer;
177174

web_src/js/features/repo-home.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function initRepoClonePanel() {
1919
const tippy = createTippy($clonePanelBtn[0], {
2020
content: $panel[0],
2121
theme: 'default',
22-
placement: 'bottom',
22+
placement: 'bottom-start',
2323
trigger: 'click',
2424
maxWidth: '300px',
2525
interactive: true,

0 commit comments

Comments
 (0)