File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { PACKAGE } from '@aj/constants'
2
+ import { createBlockbenchMod } from '@aj/util/moddingTools'
3
+
4
+ /**
5
+ * Makes the text in panel titles clip instead of wrapping
6
+ */
7
+ createBlockbenchMod (
8
+ `${ PACKAGE . name } :panelTitleTextWrap` ,
9
+ {
10
+ css : undefined as Deletable | undefined ,
11
+ } ,
12
+ ctx => {
13
+ ctx . css = Blockbench . addCSS ( `
14
+ .panel_handle label {
15
+ text-overflow: ellipsis;
16
+ text-wrap-mode: nowrap;
17
+ }
18
+ ` )
19
+ return ctx
20
+ } ,
21
+ ctx => {
22
+ ctx . css ?. delete ( )
23
+ }
24
+ )
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import './action/saveProject'
8
8
import './action/saveProjectAs'
9
9
// Class Properties
10
10
import './class-properties/animationProperties'
11
+ // CSS
12
+ import './css/panelTitleTextWrap'
11
13
// Function Overwrites
12
14
import './function-overwrites/blockbenchRead'
13
15
import './function-overwrites/reverseKeyframes'
You can’t perform that action at this time.
0 commit comments