File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ <h3>Tertiary with Label</h3>
7979 </ section >
8080
8181 < section >
82- < h3 > Tertiary without Icon</ h3 >
82+ < h3 > Tertiary with Icon-Only </ h3 >
8383 < hx-file-input
8484 class ="hxTertiary "
8585 icon ="paperclip ">
Original file line number Diff line number Diff line change @@ -99,14 +99,25 @@ <h3>Logically Truncated</h3>
9999 </ div >
100100
101101 < div class ="hxCol ">
102- < h3 > Visually Truncated</ h3 >
102+ < h3 > Visually Truncated no Spaces </ h3 >
103103 < hx-file-tile
104104 details ="3Kb "
105105 href ="files/easteregg.txt "
106106 icon ="paperclip "
107107 name ="visually-truncated-filename-really-really-really-really-really-long-final-02.pptx "
108108 > </ hx-file-tile >
109- < small > many characters, center truncation applied</ small >
109+ < small > many characters without spaces, center truncation applied</ small >
110+ </ div >
111+
112+ < div class ="hxCol ">
113+ < h3 > Visually Truncated with Spaces</ h3 >
114+ < hx-file-tile
115+ details ="3Kb "
116+ href ="files/easteregg.txt "
117+ icon ="paperclip "
118+ name ="visually truncated filename with spaces that is really-really-really-really-really-long-final-02.pptx "
119+ > </ hx-file-tile >
120+ < small > many characters with spaces, center truncation applied</ small >
110121 </ div >
111122
112123 < div class ="hxCol ">
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ export class HXFileTileElement extends HXElement {
319319
320320 /** @private */
321321 _renderName ( ) {
322- let _name = escape ( this . name ) ;
322+ let _name = this . name ;
323323 this . _elName . innerHTML = `
324324 <span>${ _name . slice ( 0 , - PRE_TRUNC ) } </span>
325325 <span>${ _name . slice ( - PRE_TRUNC ) } </span>
You can’t perform that action at this time.
0 commit comments