Skip to content

Commit e873cb4

Browse files
committed
fit 4 items, add dedicated tippy theme
1 parent 57cbaf7 commit e873cb4

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

web_src/css/modules/tippy.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
padding: 0;
5050
}
5151

52+
.tippy-box[data-theme="box-with-header"] .tippy-content {
53+
padding: 0;
54+
}
55+
5256
.tippy-box[data-placement^="top"] > .tippy-svg-arrow {
5357
bottom: 0;
5458
}
@@ -116,3 +120,11 @@
116120
.tippy-box[data-theme="menu"] .tippy-svg-arrow-inner {
117121
fill: var(--color-menu);
118122
}
123+
124+
.tippy-box[data-theme="box-with-header"][data-placement^="top"] .tippy-svg-arrow-inner {
125+
fill: var(--color-box-body);
126+
}
127+
128+
.tippy-box[data-theme="box-with-header"][data-placement^="bottom"] .tippy-svg-arrow-inner {
129+
fill: var(--color-box-header);
130+
}

web_src/css/repo.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3076,7 +3076,7 @@ tbody.commit-list {
30763076

30773077
.commit-status-list {
30783078
padding: 0 !important;
3079-
max-height: 244px; /* fit exactly 5 items */
3079+
max-height: 195px; /* fit exactly 4 items */
30803080
overflow-x: hidden;
30813081
transition: max-height .2s;
30823082
border-bottom: none !important;
@@ -3096,7 +3096,7 @@ tbody.commit-list {
30963096
}
30973097

30983098
.commit-status-item {
3099-
padding: 1em 8px !important;
3099+
padding: 14px 10px !important;
31003100
display: flex;
31013101
gap: 8px;
31023102
align-items: center;

web_src/js/features/repo-commit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function initCommitStatuses() {
6666
placement: top ? 'top-start' : 'bottom-start',
6767
interactive: true,
6868
role: 'dialog',
69-
theme: 'menu',
69+
theme: 'box-with-header',
7070
});
7171
});
7272
}

0 commit comments

Comments
 (0)