Skip to content

Sizing display panel properly #495

Answered by johnlindquist
cfritze64 asked this question in Q&A
Discussion options

You must be logged in to vote

An easy fix is add some empty rows to increase the height:

import "@johnlindquist/kit"

let numbers = ["one", "two", "three"]
let padding = ["", "", "", "", ""]

let data = [...numbers, ...padding]

await arg("", async input => {
  return data.map(n => ({
    name: n,
    preview: `<div>${n}</div>`,
  }))
})

CSS

You could definitely position the info to the side of the image. Anything is possible really.

Future: Fixed size/position

I'm considering adding a feature where you could add a "fixed/locked size/position" to a script where it retains size until you manually send another size/position.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by cfritze64
Comment options

You must be logged in to vote
2 replies
@johnlindquist
Comment options

@cfritze64
Comment options

cfritze64 Oct 28, 2021
Author Sponsor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants