File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/renderer/components/screenshot Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div class =" snippet-screenshot" >
3- <div class =" tools" >
3+ <div
4+ class =" tools"
5+ :class =" { 'no-top-border': snippetStore.isFragmentsShow }"
6+ >
47 <div class =" left" >
58 <div class =" tools__item" >
69 <AppCheckbox
@@ -103,6 +106,7 @@ import interact from 'interactjs'
103106import { computed , onMounted , ref , watch } from ' vue'
104107import { useHljsTheme } from ' @/composable'
105108import { store } from ' @/electron'
109+ import { useSnippetStore } from ' @/store/snippets'
106110
107111const GUTTER_RIGHT_OFFSET = 10
108112const GUTTER_WIDTH = 8
@@ -118,6 +122,7 @@ interface Props {
118122const props = defineProps <Props >()
119123
120124const appStore = useAppStore ()
125+ const snippetStore = useSnippetStore ()
121126
122127const frameRef = ref <HTMLElement >()
123128const snippetRef = ref <HTMLElement >()
@@ -257,11 +262,11 @@ init()
257262 display : flex ;
258263 justify-content : space-between ;
259264 align-items : center ;
260-
261265 padding : 4px var (--spacing-xs );
262266 border-top : 1px solid var (--color-border );
263267 border-bottom : 1px solid var (--color-border );
264- & __item {
268+ & .no-top-border {
269+ border-top : none ;
265270 }
266271 .left {
267272 gap : var (--spacing-sm );
You can’t perform that action at this time.
0 commit comments