Skip to content

Commit 1057652

Browse files
committed
style
1 parent acc2732 commit 1057652

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

packages/app/src/layouts/default.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="h-screen overflow-hidden flex flex-row">
3-
<main class="min-w-0 flex-1 border-t border-gray-200 lg:flex">
3+
<main class="h-screen min-w-0 flex-1 border-t border-gray-200 lg:flex">
44
<section
55
aria-labelledby="primary-heading"
66
class="min-w-0 flex-1 h-full flex flex-col overflow-hidden lg:order-last"

packages/app/src/spec/SpecRunner.vue

+16-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
ref="runnerPane"
2222
class="relative w-full"
2323
>
24-
<div class="bg-white p-4">
24+
<div class="bg-white p-4 border-8 border-blue-300">
2525
<SpecRunnerHeader :gql="props.gql" />
2626
</div>
2727

@@ -109,8 +109,23 @@ onBeforeUnmount(() => {
109109
</script>
110110

111111
<style scoped lang="scss">
112+
$navbar-width: 80px;
113+
112114
#main-pane {
115+
/** There is a "bug" caused by this line:
116+
https://github.com/cypress-io/cypress/blob/develop/packages/driver/src/cy/actionability.ts#L375
117+
Basically `scrollIntoView` is applied even outside of the <iframe>,
118+
scrolling an element "upwards", messing up the UI
119+
Easiest way to reprodudce is remove the `position: fixed`
120+
and run the `SpecList.spec.tsx` test in runner-ct
121+
in CT mode.
122+
Ideally we should not need `position: fixed`, but I don't see
123+
a good way to work around this right now.
124+
*/
125+
position: fixed;
126+
left: $navbar-width;
113127
height: 100vh;
128+
width: calc(100% - #{$navbar-width});
114129
}
115130
116131
#inline-spec-list {

0 commit comments

Comments
 (0)