Skip to content

Commit

Permalink
id at right-end && overflowing text shows ellipses;
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalAkhtar committed Aug 4, 2020
1 parent 645880c commit c242d75
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions views/card.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
<!ENTITY st9 "font-size:20px;">
<!ENTITY st10 "font-size:32px;">
<!ENTITY st11 "fill:none;stroke:#505037;stroke-miterlimit:10;">
<!ENTITY st12 "fill:#B4B342;">
<!ENTITY st12 "fill:#B4B342;color:#B4B342;">
<!ENTITY st13 "text-align:center;text-overflow:ellipsis;">
<!ENTITY st14 "text-transform:uppercase;">
<!ENTITY st15 "text-align:right;text-overflow:ellipsis;">
]>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 600 400" style="enable-background:new 0 0 600 400;" xml:space="preserve">
Expand Down Expand Up @@ -208,7 +209,7 @@ YII=" transform="matrix(1 0 0 1 -7 -8)">
</g>
<g id="id-div">
<rect x="469" y="17.96" style="&st1;" width="109.96" height="18.06"/>
<text id="id" transform="matrix(1 0 0 1 501.9648 27.6599)" style="&st12; &st3; &st4;"><%= id %></text>
<foreignObject id="id" x="469" y="17.96" style="&st12; &st3; &st4; &st15;" width="109.96" height="18.06"><%= id %></foreignObject>
</g>
</svg>
<% } else if(twitter==null && blog!='') { %>
Expand All @@ -226,13 +227,14 @@ YII=" transform="matrix(1 0 0 1 -7 -8)">
<!ENTITY st9 "font-size:20px;">
<!ENTITY st10 "font-size:32px;">
<!ENTITY st11 "fill:none;stroke:#505037;stroke-miterlimit:10;">
<!ENTITY st12 "fill:#B4B342;">
<!ENTITY st12 "fill:#B4B342;color:#B4B342;">
<!ENTITY st13 "display:none;">
<!ENTITY st14 "display:inline;">
<!ENTITY st15 "display:inline;fill:none;">
<!ENTITY st16 "display:inline;fill:#B4B342;">
<!ENTITY st17 "text-align:center;text-overflow:ellipsis;">
<!ENTITY st18 "text-transform:uppercase;">
<!ENTITY st19 "text-align:right;text-overflow:ellipsis;">
]>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 600 400" style="enable-background:new 0 0 600 400;" xml:space="preserve">
Expand Down Expand Up @@ -425,7 +427,7 @@ YII=" transform="matrix(1 0 0 1 -7 -8)">
</g>
<g id="id-div">
<rect x="469" y="17.96" style="&st1;" width="109.96" height="18.06"/>
<text id="id" transform="matrix(1 0 0 1 501.9648 27.6599)" style="&st12; &st3; &st4;"><%= id %></text>
<foreignObject id="id" x="469" y="17.96" style="&st12; &st3; &st4; &st19;" width="109.96" height="18.06"><%= id %></foreignObject>
</g>
</svg>
<% } else if(blog=='' && twitter!=null) { %>
Expand All @@ -445,11 +447,12 @@ YII=" transform="matrix(1 0 0 1 -7 -8)">
<!ENTITY st11 "fill:none;stroke:#505037;stroke-miterlimit:10;">
<!ENTITY st12 "display:none;">
<!ENTITY st13 "display:inline;">
<!ENTITY st14 "fill:#B4B342;">
<!ENTITY st14 "fill:#B4B342;color:#B4B342;">
<!ENTITY st15 "display:inline;fill:none;">
<!ENTITY st16 "display:inline;fill:#B4B342;">
<!ENTITY st17 "text-align:center;text-overflow:ellipsis;">
<!ENTITY st18 "text-transform:uppercase;">
<!ENTITY st19 "text-align:right;text-overflow:ellipsis;">
]>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 600 400" style="enable-background:new 0 0 600 400;" xml:space="preserve">
Expand Down Expand Up @@ -642,7 +645,7 @@ YII=" transform="matrix(1 0 0 1 -7 -8)">
</g>
<g id="id-div">
<rect x="469" y="17.96" style="&st1;" width="109.96" height="18.06"/>
<text id="id" transform="matrix(1 0 0 1 501.9648 27.6599)" style="&st14; &st3; &st4;"><%= id %></text>
<foreignObject id="id" x="469" y="17.96" style="&st14; &st3; &st4; &st19;" width="109.96" height="18.06"><%= id %></foreignObject>
</g>
</svg>
<% } else { %>
Expand All @@ -661,11 +664,12 @@ YII=" transform="matrix(1 0 0 1 -7 -8)">
<!ENTITY st11 "fill:none;stroke:#505037;stroke-miterlimit:10;">
<!ENTITY st12 "display:none;">
<!ENTITY st13 "display:inline;">
<!ENTITY st14 "fill:#B4B342;">
<!ENTITY st14 "fill:#B4B342;color:#B4B342;">
<!ENTITY st15 "display:inline;fill:none;">
<!ENTITY st16 "display:inline;fill:#B4B342;">
<!ENTITY st17 "text-align:center;text-overflow:ellipsis;">
<!ENTITY st18 "text-transform:uppercase;">
<!ENTITY st19 "text-align:right;text-overflow:ellipsis;">
]>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 600 400" style="enable-background:new 0 0 600 400;" xml:space="preserve">
Expand Down Expand Up @@ -858,7 +862,7 @@ YII=" transform="matrix(1 0 0 1 -7 -8)">
</g>
<g id="id-div">
<rect x="469" y="25.96" style="&st1;" width="109.96" height="18.06"/>
<text id="id_1_" transform="matrix(1 0 0 1 501.9648 35.6599)" style="&st14; &st3; &st4;"><%= id %></text>
<foreignObject id="id" x="469" y="25.96" style="&st14; &st3; &st4; &st19;" width="109.96" height="18.06"><%= id %></foreignObject>
</g>
</svg>
<% } %>

0 comments on commit c242d75

Please sign in to comment.