Skip to content

Commit 3a15c1d

Browse files
authored
style: wrap the yanked reason to prevent overflow (#18387)
1 parent 3560c71 commit 3a15c1d

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

warehouse/static/sass/blocks/_release.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,14 @@
9999
padding-bottom: 2px;
100100
}
101101

102-
&__yanked-reason p {
103-
overflow: hidden;
104-
text-overflow: ellipsis;
105-
white-space: nowrap;
102+
&__yanked-reason {
103+
display: block;
104+
105+
p {
106+
overflow: hidden;
107+
text-overflow: ellipsis;
108+
white-space: nowrap;
109+
}
106110
}
107111

108112
&--current {

webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: Apache-2.0 */
22

3-
/* global module, __dirname */
3+
/* global module, process, __dirname */
44

55
// This is the main configuration file for webpack.
66
// See: https://webpack.js.org/configuration/
@@ -372,6 +372,8 @@ module.exports = [
372372
path: path.resolve(__dirname, "warehouse/static/dist"),
373373
},
374374
dependencies: ["warehouse"],
375+
// Emit fewer stats-per-language in non-production builds.
376+
stats: (process.env.NODE_ENV === "production") ? undefined : "errors-warnings",
375377
};
376378
}),
377379
];

0 commit comments

Comments
 (0)