Skip to content

Commit

Permalink
feat: add not-recording tips for timeline tab
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Oct 16, 2024
1 parent 50c2957 commit 7e7b2d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/client/src/components/timeline/TimelineLayers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function toggleTimelineLayerEnabled(id: string) {

<template>
<div h-full flex flex-col p2>
<div class="mb-1 flex justify-end pb-1" border="b dashed base">
<div class="relative mb-1 w-full flex items-center justify-end pb-1" border="b dashed base">
<span v-if="!recordingState" class="absolute left-0 text-xs text-gray-300 dark:text-gray-500">Not recording</span>
<div class="flex items-center gap-2 px-1">
<div v-tooltip.bottom-end="{ content: recordingTooltip }" class="flex items-center gap1" @click="toggleRecordingState">
<span v-if="recordingState" class="recording recording-btn bg-[#ef4444]" />
Expand Down
7 changes: 4 additions & 3 deletions packages/playground/basic/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import AutoImport from 'unplugin-auto-import/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import { defineConfig } from 'vite'
import inspect from 'vite-plugin-inspect'
import VueDevTools from 'vite-plugin-vue-devtools'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
commonjs(),
// VueDevTools({
// // launchEditor: 'code',
// }),
VueDevTools({
// launchEditor: 'code',
}),
Unocss(),
AutoImport({
imports: [
Expand Down

0 comments on commit 7e7b2d0

Please sign in to comment.