Be warned, Markers are a bit tricky in Logic. There are a lot of little details you have to be aware of.
First of all, you have to know that the Markers are displayed and can be managed in the Marker Track (as part of the Global Tracks) and in the Marker List. As Ben explained already, you can adjust the length easily in the Marker List.
The link he posted is for the official Logic user guide that explains the handling of Markers. Unfortunately, there are some errors in those explanations regarding moving the start and end position of Makers in the Marker Track. The key commands are wrong. You just drag the start, end, or the Marker itself to adjust the Start, End or Position of a specific Marker.
Here are a few things you have to know.
- Any Maker that you create in Logic has no end position per default. It is an Infinite Marker (exception is when dragging a Region to the Marker Track, then it creates a Marker with the exact length of the Region)
- You can identify an Infinite Marker in the Marker List by its length value (0.0.1) or when the position time is displayed, it has the same position as the start time.
- On the Marker Track, an Infinite Marker is easy to spot when it reaches all the way to the end of the project.
- If another Marker follows an Infinite Marker, then it ends at the start of the following Marker. This is indicated with that little area (that notch) at the beginning of the following Marker. Look at the screenshot at bar 5. Marker 1 is infinite
- If a Marker (Marker 2) just ends at the same position as the following Marker (Marker 3), then it looks the same, but if you look closer (bar 9) then you can see the ending (at that notch) is a little bit different.
- The screenshot also shows the Marker List where you can see that Marker 1 and Marker 4 are infinite Markers (length 0.0.1).
- As I mentioned, you can trim or move a Marker, the same as a Region, drag its start or end position (or drag in the middle to move it). If you would drag the end of Marker 1 to the left, you would automatically change it from an infinite Marker to a finite Marker.
- To change an infinite Marker to a finite Maker if it is the last Marker on the Marker Track, just command+click the Marker where you want it to end, done. You can use this click action also on any other maker instead of dragging its border. BTW, shift+command+click lets you truncate the left border of the Marker Look at the cursor icon).

There a few more "little details". Make sure to read my in-depth tutorial about Global Tracks that explains how to edit the Markers on the Playhead Ruler if the Marker Track is not visible.
http://logicprogem.com/Logic-Pro-X-Tutorials/Entries/2017/11/16_Global_Tracks_-_ Three_of_Them.html
Hope that helps
Edgar Rothermich - LogicProGEM.com
(Author of the "Graphically Enhanced Manuals")
http://DingDingMusic.com/Manuals/
'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'