Page slide display area

I'm questioning which is the best area to display this type of component, to not get lost in technical names, to the type of component I'm referring to is this one:

Example

Should the area of this slide be in relation to the action area or the entire window? (In my scenarios you can imagine to open said slide is by clicking on a record on the table behind)

Scenario 1

enter image description here

Scenario 2

enter image description here