Skip to content

Commit 5f50f3e

Browse files
committed
Merge branch 'master' into development
* master: Bug 1984407 - Phabbugz reviewer rotation has incorrect regex for looking for project names for review rotation Bug 1896310 - Attached images are not displayed inline when the bug has no keywords Bug 1933892 - missing/misplaced horizontal scrollbar on bug lists
2 parents 429b770 + b7a1c7b commit 5f50f3e

File tree

6 files changed

+22
-12
lines changed

6 files changed

+22
-12
lines changed

extensions/BugModal/web/comments.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,17 @@ Bugzilla.BugModal.Comments = class Comments {
483483
* Prepare to show an attachment inline if possible.
484484
*/
485485
prepare_inline_attachments() {
486-
// Check the connectivity, API support, user setting, bug security and sensitive keywords
487-
if ((navigator.connection && navigator.connection.type === 'cellular') ||
488-
typeof IntersectionObserver !== 'function' || !BUGZILLA.user.settings.inline_attachments ||
489-
BUGZILLA.bug_secure || !BUGZILLA.bug_keywords ||
490-
BUGZILLA.bug_keywords.split(', ').find(keyword => keyword.match(/^(hang|assertion|crash)$/))) {
486+
// Check the Bugzilla instance parameter, user setting, bug security, sensitive keywords, API
487+
// support and connectivity. If any of these conditions are not met, skip the inline attachment
488+
// rendering.
489+
if (
490+
!BUGZILLA.param.allow_attachment_display ||
491+
!BUGZILLA.user.settings.inline_attachments ||
492+
BUGZILLA.bug_secure ||
493+
/\b(?:hang|assertion|crash)\b/.test(BUGZILLA.bug_keywords ?? '') ||
494+
typeof IntersectionObserver !== 'function' ||
495+
navigator.connection?.type === 'cellular'
496+
) {
491497
return;
492498
}
493499

extensions/PhabBugz/lib/Util.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ sub get_review_rotation_projects {
597597
next if !$reviewer->{is_project};
598598

599599
# Only interested in reviewer rotation groups
600-
next if $reviewer->{user}->name !~ /-reviewer?s-rotation$/;
600+
next if $reviewer->{user}->name !~ /-reviewers?-rotation$/;
601601

602602
push @review_projects, $reviewer->{user};
603603
$is_blocking->{$reviewer->{user}->phid} = $reviewer->{is_blocking} ? 1 : 0;

js/text-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ Bugzilla.CommentEditor = class CommentEditor extends Bugzilla.TextEditor {
729729
window.addEventListener(
730730
'DOMContentLoaded',
731731
() => {
732-
const useMarkdown = BUGZILLA.param.use_markdown === '1';
732+
const useMarkdown = BUGZILLA.param.use_markdown;
733733

734734
document
735735
.querySelectorAll('textarea[name="comment"]:not(.bz_default_hidden)')

skins/standard/buglist.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,18 @@ td.bz_total {
213213
}
214214

215215
.bz_buglist.responsive tbody td {
216-
display: flex;
216+
display: flow-root;
217217
gap: 4px;
218-
padding: 2px 0 !important;
218+
margin-block: 8px;
219+
padding: 0 0 0 90px !important;
219220
width: auto;
220221
text-align: left;
221222
}
222223

223224
.bz_buglist.responsive tbody td::before {
224225
display: block;
226+
float: left;
227+
margin-inline: -90px 10px;
225228
min-width: 80px;
226229
color: var(--secondary-label-color);
227230
font-size: var(--font-size-small);

skins/standard/global.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,19 +935,18 @@ input[type="radio"]:checked {
935935
#bugzilla-body {
936936
display: flow-root;
937937
position: relative;
938-
overflow: auto;
939938
outline: none;
940939
}
941940

942941
@media screen {
943942
:root {
944943
scroll-padding-top: calc(var(--global-header-height) + var(--private-bug-banner-height, 0px) + 8px);
944+
scrollbar-color: var(--scrollbar-color);
945945
}
946946

947947
body {
948948
color: var(--application-foreground-color);
949949
background-color: var(--application-background-color);
950-
scrollbar-color: var(--scrollbar-color);
951950
}
952951

953952
#wrapper {
@@ -971,6 +970,7 @@ input[type="radio"]:checked {
971970
*/
972971

973972
#header {
973+
width: 100dvw;
974974
height: var(--global-header-height);
975975
color: var(--application-header-foreground-color);
976976
background-color: var(--application-header-background-color);

template/en/default/global/header.html.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@
123123
maxattachmentsize => Param('maxattachmentsize'),
124124
maxusermatches => Param('maxusermatches'),
125125
splinter_base => Param('splinter_base'),
126-
use_markdown => Param('use_markdown'),
126+
use_markdown => Param('use_markdown') == '1',
127+
allow_attachment_display => Param('allow_attachment_display') == '1',
127128
},
128129
constant => {
129130
COMMENT_COLS => constants.COMMENT_COLS,

0 commit comments

Comments
 (0)