How to make a table stroke shorter?

I am trying to create (yet another) Typst-CV, namely mine. Currently my tabular entries look like this:

I want the strokes to be shorter, such that they go less above the height of the text. How can I do this? The stroke parameter does not contain any length parameter.

  #set table(
    columns: (auto, auto), 
    align: (right, left),
    stroke: (x, y) => {
      if x == 0 {
       (right: (1pt + black))
      } else{
        (:)
      }
    },
    row-gutter: 0.3em
  )


#table(
    [10/2023 - 02/2024], [#lorem(20)],
    [08/ – 10/2023], [#lorem(30)],
    [08/ – 09/2022], [#lorem(25)], 
)

the table stroke goes over the whole cell; if you want the text to come closer to the edge of the cell, you can reduce the y-inset (default seems to be 5pt). You can counteract any decrease there by increasing the row-gutter by the same amount.
So the following adjustments could work:

#set table(
  inset: (y: 3pt),  // 2pt less at the top and bottom
  row-gutter: 0.5em + 4pt,  // 4pt more between rows
)
1 Like

Yes, that works. Thanks! :)