Skip to content

Commit a8c7ccd

Browse files
committed
added ellipsis
1 parent 804f8b5 commit a8c7ccd

4 files changed

Lines changed: 24 additions & 8 deletions

File tree

src/components/pg/poco/__examples__/basic/basic.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<div class="example">
2-
<pg-poco part="poco"></pg-poco>
3-
<select part="list"></select>
2+
<div style="box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.3);width:min-content;margin-bottom: 0.5rem;">
3+
<pg-poco part="poco"></pg-poco>
4+
</div>
5+
<label>Demo:
6+
<select part="list"></select>
7+
</label>
48
<textarea part="code" rows="15" spellcheck="false" style="margin-top:0.5rem;width:calc(100% - 1rem);padding:0.5rem;border-radius:0.5rem;"></textarea>
59
<button part="run">Run</button>
610
<pre part="error" style="padding: 0.5rem;border: 1px solid rgb(128 0 0);border-radius: 0.25rem;background: rgba(128, 0, 0, 0.1);"></pre>

src/components/pg/poco/__examples__/basic/examples.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const demos = [
146146
poco.drawText("Hello, Poco!", myFont, white, 10, 10);
147147
poco.drawText("MyFont bitmap font.", myFont, black, 10, 10 + myFont.height + 4);
148148
poco.fillRectangle(white, 0, 80, poco.width, 1);
149-
poco.drawText("This text is too long to fit without truncation.", myFont, black, 10, 90, 200);
149+
poco.drawText("This text is too long to fit without truncation.", myFont, black, 10, 90, 195);
150150
poco.drawText("Full width fits fine.", myFont, black, 10, 90 + myFont.height + 4, poco.width - 20);
151151
poco.end();
152152
}

0 commit comments

Comments
 (0)