zephyrie Claude Opus 4.7 commited on
Commit
e33c60d
·
1 Parent(s): 95b6812

Center Window/Level preset pill text

Browse files

The W/L preset pills (.preset-row label) had the same Gradio ml-2
span-margin offset as the body-region / voxel pills, and no rule was
zeroing it. Added .preset-row label > span { margin: 0 } — text is now
symmetric (13px/13px) in all four presets.

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

Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1284,6 +1284,8 @@ body [role="option"][aria-selected="true"] {
1284
  transition: all 160ms ease;
1285
  }
1286
  .preset-row input[type="radio"] { display: none; }
 
 
1287
  .preset-row label:has(input:checked) {
1288
  background: color-mix(in srgb, var(--green) 14%, transparent) !important;
1289
  border-color: var(--green) !important;
 
1284
  transition: all 160ms ease;
1285
  }
1286
  .preset-row input[type="radio"] { display: none; }
1287
+ /* kill Gradio's ml-2 utility so W/L preset text is centered in its pill */
1288
+ .preset-row label > span { margin: 0 !important; }
1289
  .preset-row label:has(input:checked) {
1290
  background: color-mix(in srgb, var(--green) 14%, transparent) !important;
1291
  border-color: var(--green) !important;