FTA7700 commited on
Commit
d5fde2e
·
1 Parent(s): 0ac9e56

Tooltip icons: swap to ⓘ with tighter spacing; bottom-anchor checkboxes to align with NavMenu list

Browse files
web/src/components/RenderSettingsForm.vue CHANGED
@@ -1357,8 +1357,8 @@ function toggleExclude(key: string, checked: boolean) {
1357
  <div class="rounded-md border p-4 space-y-3 w-fit">
1358
  <p class="text-sm font-semibold">Poster (Nav Menu Test)</p>
1359
  <TooltipProvider>
1360
- <div class="flex gap-4 items-start">
1361
- <div class="flex flex-col gap-3 w-[170px]">
1362
  <div class="relative w-[170px]" :style="posterPreview.size ? { aspectRatio: `${posterPreview.size.w} / ${posterPreview.size.h}` } : undefined">
1363
  <img
1364
  v-show="posterPreview.src && !posterPreview.error"
@@ -1373,6 +1373,7 @@ function toggleExclude(key: string, checked: boolean) {
1373
  <Loader2 class="size-5 animate-spin text-white drop-shadow-md" />
1374
  </div>
1375
  </div>
 
1376
  <div class="flex items-center gap-2">
1377
  <Checkbox
1378
  :id="inputId('textless-nav-test')"
@@ -1388,15 +1389,10 @@ function toggleExclude(key: string, checked: boolean) {
1388
  :model-value="editPosterBadgeSplit"
1389
  @update:model-value="(v) => editPosterBadgeSplit = !!v"
1390
  />
1391
- <Label :for="inputId('poster-badge-split-nav-test')">Split badges onto opposite sides</Label>
1392
- <Tooltip>
1393
- <TooltipTrigger as-child>
1394
- <span class="inline-flex items-center justify-center size-3.5 rounded-full border text-[10px] leading-none text-muted-foreground align-super cursor-help">?</span>
1395
- </TooltipTrigger>
1396
- <TooltipContent>Splits badges across two opposite sides — left/right for a vertical layout, top/bottom for horizontal rows.</TooltipContent>
1397
- </Tooltip>
1398
  </div>
1399
  </div>
 
1400
  </div>
1401
  <NavigationMenu orientation="vertical" :viewport="false" class="items-start justify-start max-w-none">
1402
  <NavigationMenuList class="flex-none w-48">
@@ -1445,7 +1441,7 @@ function toggleExclude(key: string, checked: boolean) {
1445
  <NavigationMenuTrigger>Badge shape</NavigationMenuTrigger>
1446
  <NavigationMenuContent class="!left-full !top-0 !ml-2 !mt-0">
1447
  <div class="flex flex-col gap-1 w-56">
1448
- <button v-for="opt in testPosterBadgeShapeOptions" :key="opt.value" type="button" class="text-left text-sm" :class="editPosterBadgeShape === opt.value ? 'font-bold' : 'font-[300] text-muted-foreground'" @click="editPosterBadgeShape = opt.value">{{ opt.label }} <span v-if="editPosterBadgeShape === opt.value">★</span><Tooltip v-if="opt.value === 'p'"><TooltipTrigger as-child><span class="inline-flex items-center justify-center size-3.5 rounded-full border text-[10px] leading-none text-muted-foreground align-super cursor-help ml-1">?</span></TooltipTrigger><TooltipContent>Pills always render horizontally.</TooltipContent></Tooltip></button>
1449
  </div>
1450
  </NavigationMenuContent>
1451
  </NavigationMenuItem>
@@ -1458,7 +1454,7 @@ function toggleExclude(key: string, checked: boolean) {
1458
  </NavigationMenuContent>
1459
  </NavigationMenuItem>
1460
  <NavigationMenuItem>
1461
- <NavigationMenuTrigger>Aspect ratio <Tooltip><TooltipTrigger as-child><span class="inline-flex items-center justify-center size-3.5 rounded-full border text-[10px] leading-none text-muted-foreground align-super cursor-help ml-1">?</span></TooltipTrigger><TooltipContent>How non-2:3 posters are fit to the standard 2:3 frame so clients don't crop them.</TooltipContent></Tooltip></NavigationMenuTrigger>
1462
  <NavigationMenuContent class="!left-full !top-0 !ml-2 !mt-0">
1463
  <div class="flex flex-col gap-1 w-56">
1464
  <button v-for="opt in testPosterFitOptions" :key="opt.value" type="button" class="text-left text-sm" :class="editPosterFit === opt.value ? 'font-bold' : 'font-[300] text-muted-foreground'" @click="editPosterFit = opt.value">{{ opt.label }} <span v-if="editPosterFit === opt.value">★</span></button>
@@ -1469,13 +1465,7 @@ function toggleExclude(key: string, checked: boolean) {
1469
  <NavigationMenuTrigger>Max ratings</NavigationMenuTrigger>
1470
  <NavigationMenuContent class="!left-full !top-0 !ml-2 !mt-0">
1471
  <div class="flex items-center gap-3 w-64">
1472
- <Label :for="inputId('ratings-limit-nav-test')">Max ratings</Label>
1473
- <Tooltip>
1474
- <TooltipTrigger as-child>
1475
- <span class="inline-flex items-center justify-center size-3.5 rounded-full border text-[10px] leading-none text-muted-foreground align-super cursor-help">?</span>
1476
- </TooltipTrigger>
1477
- <TooltipContent>0 = no ratings</TooltipContent>
1478
- </Tooltip>
1479
  <Input
1480
  :id="inputId('ratings-limit-nav-test')"
1481
  v-model.number="editRatingsLimit"
 
1357
  <div class="rounded-md border p-4 space-y-3 w-fit">
1358
  <p class="text-sm font-semibold">Poster (Nav Menu Test)</p>
1359
  <TooltipProvider>
1360
+ <div class="flex gap-4 items-stretch">
1361
+ <div class="flex flex-col w-[170px] h-full">
1362
  <div class="relative w-[170px]" :style="posterPreview.size ? { aspectRatio: `${posterPreview.size.w} / ${posterPreview.size.h}` } : undefined">
1363
  <img
1364
  v-show="posterPreview.src && !posterPreview.error"
 
1373
  <Loader2 class="size-5 animate-spin text-white drop-shadow-md" />
1374
  </div>
1375
  </div>
1376
+ <div class="flex flex-col gap-3 mt-auto">
1377
  <div class="flex items-center gap-2">
1378
  <Checkbox
1379
  :id="inputId('textless-nav-test')"
 
1389
  :model-value="editPosterBadgeSplit"
1390
  @update:model-value="(v) => editPosterBadgeSplit = !!v"
1391
  />
1392
+ <Label :for="inputId('poster-badge-split-nav-test')" class="gap-0.5">Split badges onto opposite sides<Tooltip><TooltipTrigger as-child><span class="text-[11px] text-muted-foreground align-super cursor-help">ⓘ</span></TooltipTrigger><TooltipContent>Splits badges across two opposite sides — left/right for a vertical layout, top/bottom for horizontal rows.</TooltipContent></Tooltip></Label>
 
 
 
 
 
 
1393
  </div>
1394
  </div>
1395
+ </div>
1396
  </div>
1397
  <NavigationMenu orientation="vertical" :viewport="false" class="items-start justify-start max-w-none">
1398
  <NavigationMenuList class="flex-none w-48">
 
1441
  <NavigationMenuTrigger>Badge shape</NavigationMenuTrigger>
1442
  <NavigationMenuContent class="!left-full !top-0 !ml-2 !mt-0">
1443
  <div class="flex flex-col gap-1 w-56">
1444
+ <button v-for="opt in testPosterBadgeShapeOptions" :key="opt.value" type="button" class="text-left text-sm" :class="editPosterBadgeShape === opt.value ? 'font-bold' : 'font-[300] text-muted-foreground'" @click="editPosterBadgeShape = opt.value">{{ opt.label }} <span v-if="editPosterBadgeShape === opt.value">★</span><Tooltip v-if="opt.value === 'p'"><TooltipTrigger as-child><span class="text-[11px] text-muted-foreground align-super cursor-help ml-0.5">ⓘ</span></TooltipTrigger><TooltipContent>Pills always render horizontally.</TooltipContent></Tooltip></button>
1445
  </div>
1446
  </NavigationMenuContent>
1447
  </NavigationMenuItem>
 
1454
  </NavigationMenuContent>
1455
  </NavigationMenuItem>
1456
  <NavigationMenuItem>
1457
+ <NavigationMenuTrigger>Aspect ratio<Tooltip><TooltipTrigger as-child><span class="text-[11px] text-muted-foreground align-super cursor-help ml-0.5">ⓘ</span></TooltipTrigger><TooltipContent>How non-2:3 posters are fit to the standard 2:3 frame so clients don't crop them.</TooltipContent></Tooltip></NavigationMenuTrigger>
1458
  <NavigationMenuContent class="!left-full !top-0 !ml-2 !mt-0">
1459
  <div class="flex flex-col gap-1 w-56">
1460
  <button v-for="opt in testPosterFitOptions" :key="opt.value" type="button" class="text-left text-sm" :class="editPosterFit === opt.value ? 'font-bold' : 'font-[300] text-muted-foreground'" @click="editPosterFit = opt.value">{{ opt.label }} <span v-if="editPosterFit === opt.value">★</span></button>
 
1465
  <NavigationMenuTrigger>Max ratings</NavigationMenuTrigger>
1466
  <NavigationMenuContent class="!left-full !top-0 !ml-2 !mt-0">
1467
  <div class="flex items-center gap-3 w-64">
1468
+ <Label :for="inputId('ratings-limit-nav-test')" class="gap-0.5">Max ratings<Tooltip><TooltipTrigger as-child><span class="text-[11px] text-muted-foreground align-super cursor-help">ⓘ</span></TooltipTrigger><TooltipContent>0 = no ratings</TooltipContent></Tooltip></Label>
 
 
 
 
 
 
1469
  <Input
1470
  :id="inputId('ratings-limit-nav-test')"
1471
  v-model.number="editRatingsLimit"