Skip to content

Commit

Permalink
Fix image link and example length
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Sep 8, 2024
1 parent b9a846d commit 54395bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The `Invoke-SpectreLive` function allows you to run a scriptblock and update a r

See the documentation for [`Invoke-SpectreLive`](/reference/live/invoke-spectrelive/) for more information and examples.

![Filebrowser example](/public/filebrowser.gif)
![Filebrowser example](/filebrowser.gif)

### All New Commandlets

Expand Down
3 changes: 2 additions & 1 deletion PwshSpectreConsole/public/formatting/Format-SpectreRows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ function Format-SpectreRows {
# **Example 2**
# This example demonstrates how to display a collection of renderable items as rows inside a panel, without wrapping the renderables in rows you cannot display them in a panel because a panel only accepts a single item.
$rows = @()
$bigText = "lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat non proident sunt in culpa"
for ($i = 0; $i -lt 12; $i+= 4) {
$rows += "lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat non proident sunt in culpa" | Format-SpectrePadded -Left $i -Top 0 -Bottom 0 -Right 0
$rows += $bigText | Format-SpectrePadded -Left $i -Top 0 -Bottom 0 -Right 0
}
$rows | Format-SpectreRows | Format-SpectrePanel
#>
Expand Down

0 comments on commit 54395bf

Please sign in to comment.