lvwerra HF Staff Claude Opus 4.6 commited on
Commit
179f9a1
·
1 Parent(s): b75e768

Enlarge collapse toggle hit area for easier clicking

Browse files

Adds padding with negative margin to both widget and agent header
collapse toggles, making the clickable zone ~34px without changing
the visual arrow size.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. frontend/style.css +11 -0
frontend/style.css CHANGED
@@ -681,11 +681,16 @@ body {
681
  .agent-header .collapse-toggle {
682
  width: 8px;
683
  height: 8px;
 
 
 
684
  display: flex;
685
  align-items: center;
686
  justify-content: center;
687
  cursor: pointer;
688
  flex-shrink: 0;
 
 
689
  }
690
 
691
  .agent-header .collapse-toggle::before {
@@ -4198,12 +4203,18 @@ pre code [class*="token"] {
4198
  .widget-collapse-toggle {
4199
  width: 14px;
4200
  height: 14px;
 
 
 
4201
  display: flex;
4202
  align-items: center;
4203
  justify-content: center;
4204
  flex-shrink: 0;
4205
  opacity: 0.6;
 
4206
  transition: opacity 0.2s;
 
 
4207
  }
4208
 
4209
  .widget-collapse-toggle:hover {
 
681
  .agent-header .collapse-toggle {
682
  width: 8px;
683
  height: 8px;
684
+ padding: 10px;
685
+ margin: -10px;
686
+ box-sizing: content-box;
687
  display: flex;
688
  align-items: center;
689
  justify-content: center;
690
  cursor: pointer;
691
  flex-shrink: 0;
692
+ position: relative;
693
+ z-index: 1;
694
  }
695
 
696
  .agent-header .collapse-toggle::before {
 
4203
  .widget-collapse-toggle {
4204
  width: 14px;
4205
  height: 14px;
4206
+ padding: 10px;
4207
+ margin: -10px;
4208
+ box-sizing: content-box;
4209
  display: flex;
4210
  align-items: center;
4211
  justify-content: center;
4212
  flex-shrink: 0;
4213
  opacity: 0.6;
4214
+ cursor: pointer;
4215
  transition: opacity 0.2s;
4216
+ position: relative;
4217
+ z-index: 1;
4218
  }
4219
 
4220
  .widget-collapse-toggle:hover {