Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/styles/hexChromeDensity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,10 @@ describe('hex ascii cell diff', () => {
)
})
})

describe('hex wrap-controls hide', () => {
it('hides Hex wrap-controls strip toward capture path-to-grid chrome', () => {
expect(hexView).toMatch(/\.hex-wrap-controls\s*\{[\s\S]*?display:\s*none/)
expect(css).toMatch(/\.hex-compare-view \.hex-wrap-controls\s*\{[\s\S]*?display:\s*none/)
})
})
1 change: 1 addition & 0 deletions src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2182,6 +2182,7 @@ html[data-show-path-bars='0'] .path-pair-bar {

/* Hex wrap/controls + byte rows at capture CSS scale */
.hex-compare-view .hex-wrap-controls {
display: none !important;
gap: 4px 6px !important;
min-height: 20px !important;
padding: 2px 4px !important;
Expand Down
31 changes: 22 additions & 9 deletions src/views/HexCompareView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,15 @@ async function runHexSave(): Promise<void> {
test-id="hex-right-path-footer"
/>
</div>
<button
type="button"
class="hex-run-diff"
data-testid="run-hex-compare"
:disabled="loading"
@click="runHexCompare()"
>
{{ $t('ui.runDiff') }}
</button>
</section>
<section
class="hex-wrap-controls"
Expand Down Expand Up @@ -974,14 +983,6 @@ async function runHexSave(): Promise<void> {
<strong data-testid="hex-diff-ranges">{{
$t('status.ranges', { count: diffRangeCount })
}}</strong>
<button
type="button"
data-testid="run-hex-compare"
:disabled="loading"
@click="runHexCompare()"
>
{{ $t('ui.runDiff') }}
</button>
<div
class="hex-offset-chrome"
data-testid="hex-offset-chrome"
Expand Down Expand Up @@ -1511,8 +1512,20 @@ h2 {
line-height: 16px;
}

.hex-run-diff {
height: 18px;
min-height: 18px;
margin: 2px 0 0;
padding: 0 8px;
border: 1px solid #a0a0a0;
border-radius: 0;
background: #f0f0f0;
font-size: 11px;
line-height: 16px;
}

.hex-wrap-controls {
display: grid;
display: none;
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
gap: 4px 6px;
Expand Down
Loading