Skip to content

Commit

Permalink
shorter wait; hover underline; hoverable radix
Browse files Browse the repository at this point in the history
  • Loading branch information
gbodeen committed Mar 8, 2024
1 parent d9e4447 commit 9d386a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions media/memory-table.css
Expand Up @@ -102,8 +102,8 @@
width: 2px;
}

.hoverable {
position: relative;
.hoverable:hover {
border-bottom: 1px dotted var(--vscode-editorHoverWidget-border);
}

/* Basic hover formatting (copied from Monaco hovers) */
Expand Down
4 changes: 2 additions & 2 deletions src/webview/columns/address-column.tsx
Expand Up @@ -29,9 +29,9 @@ export class AddressColumn implements ColumnContribution {
fittingType: ColumnFittingType = 'content-width';

render(range: BigIntMemoryRange, _: Memory, options: TableRenderOptions): ReactNode {
return <span className='memory-start-address'>
return <span className='memory-start-address hoverable' data-column='address'>
{options.showRadixPrefix && <span className='radix-prefix'>{getRadixMarker(options.addressRadix)}</span>}
<span className='address hoverable' data-column='address'>{getAddressString(range.startAddress, options.addressRadix, options.effectiveAddressLength)}</span>
<span className='address'>{getAddressString(range.startAddress, options.addressRadix, options.effectiveAddressLength)}</span>
</span>;
}
}
2 changes: 1 addition & 1 deletion src/webview/components/memory-table.tsx
Expand Up @@ -277,7 +277,7 @@ export class MemoryTable extends React.PureComponent<MemoryTableProps, MemoryTab
target=".hoverable"
onBeforeShow={this.handleOnBeforeTooltipShow}
onHide={this.handleOnTooltipHide}
showDelay={1000}
showDelay={300}
autoHide={false}
>{this.state.hoverContent}</Tooltip>
<DataTable<MemoryRowData[]>
Expand Down

0 comments on commit 9d386a4

Please sign in to comment.