Skip to content

Commit 7e7b2d0

Browse files
committedOct 16, 2024·
feat: add not-recording tips for timeline tab
1 parent 50c2957 commit 7e7b2d0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
 

‎packages/client/src/components/timeline/TimelineLayers.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ function toggleTimelineLayerEnabled(id: string) {
6060

6161
<template>
6262
<div h-full flex flex-col p2>
63-
<div class="mb-1 flex justify-end pb-1" border="b dashed base">
63+
<div class="relative mb-1 w-full flex items-center justify-end pb-1" border="b dashed base">
64+
<span v-if="!recordingState" class="absolute left-0 text-xs text-gray-300 dark:text-gray-500">Not recording</span>
6465
<div class="flex items-center gap-2 px-1">
6566
<div v-tooltip.bottom-end="{ content: recordingTooltip }" class="flex items-center gap1" @click="toggleRecordingState">
6667
<span v-if="recordingState" class="recording recording-btn bg-[#ef4444]" />

‎packages/playground/basic/vite.config.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ import AutoImport from 'unplugin-auto-import/vite'
55
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
66
import { defineConfig } from 'vite'
77
import inspect from 'vite-plugin-inspect'
8+
import VueDevTools from 'vite-plugin-vue-devtools'
89
// https://vitejs.dev/config/
910
export default defineConfig({
1011
plugins: [
1112
vue(),
1213
commonjs(),
13-
// VueDevTools({
14-
// // launchEditor: 'code',
15-
// }),
14+
VueDevTools({
15+
// launchEditor: 'code',
16+
}),
1617
Unocss(),
1718
AutoImport({
1819
imports: [

0 commit comments

Comments
 (0)
Please sign in to comment.