Skip to content

Commit bb9546c

Browse files
committed
make panel header fixed
1 parent 0b32796 commit bb9546c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/view/panel.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<section class="jsdiff-panel">
3-
<progress-indicator v-if="state.inprogress" />
4-
53
<section class="-header">
4+
<progress-indicator v-if="state.inprogress" />
5+
66
<div v-if="hasBothSides" class="-toolbox">
77
<button
88
class="btn"
@@ -231,7 +231,7 @@ function $_onDiffRequest({ left, right, timestamp }: ICompareState) {
231231
}
232232
233233
body {
234-
margin: 0;
234+
margin: 1.5rem 0 0 0;
235235
padding: 0;
236236
}
237237
@@ -254,6 +254,10 @@ body {
254254
}
255255
256256
.-header {
257+
position: fixed;
258+
top: 0;
259+
width: 100%;
260+
background-color: #fff;
257261
border-bottom: 1px solid #bbb;
258262
box-shadow: 1px 2px 5px #bbb;
259263
display: flex;

0 commit comments

Comments
 (0)