We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c034b commit 2710137Copy full SHA for 2710137
web/src/lib/components/menu-bar/MenuBar.svelte
@@ -123,7 +123,8 @@
123
<Menubar.Portal>
124
<Menubar.Content class="z-20 border bg-neutral text-sm" align="start">
125
<Menubar.Item
126
- class="btn-ghost px-2 py-1 select-none"
+ class="data-disabled:cursor-notallowed btn-ghost px-2 py-1 select-none data-disabled:pointer-events-none data-disabled:text-em-disabled"
127
+ disabled={viewer.selection === undefined}
128
onSelect={() => {
129
if (viewer.selection) {
130
viewer.scrollToFile(viewer.selection.file.index, {
@@ -133,8 +134,10 @@
133
134
viewer.jumpToSelection = true;
135
}
136
- }}>Go to Selection</Menubar.Item
137
+ }}
138
>
139
+ Go to Selection
140
+ </Menubar.Item>
141
</Menubar.Content>
142
</Menubar.Portal>
143
</Menubar.Menu>
0 commit comments