Skip to content

Commit

Permalink
fix: Better handling for long config names (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
clemyan authored Jun 11, 2024
1 parent 1546667 commit 055a667
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/components/ConfigItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ const extraConfigs = computed(() => {
<div class="absolute right-[calc(100%+10px)] top-1.5" text-right font-mono op35 lt-lg:hidden>
#{{ index + 1 }}
</div>
<div flex="~ gap-2 items-start wrap items-center" cursor-pointer select-none bg-hover px2 py2 text-sm font-mono>
<div class="[details[open]_&]:rotate-90" i-ph-caret-right op50 transition />
<div flex flex-auto flex-col gap-3 md:flex-row>
<span :class="config.name ? '' : 'op50 italic'" flex-auto>
<div flex="~ gap-2 items-center" cursor-pointer select-none bg-hover px2 py2 text-sm font-mono>
<div class="[details[open]_&]:rotate-90" i-ph-caret-right flex-none op50 transition />
<div flex flex-auto flex-col flex-wrap gap-3 md:flex-row md:justify-end>
<span :class="config.name ? '' : 'op50 italic'" flex-1>
<ColorizedConfigName v-if="config.name" :name="config.name" />
<span v-else>anonymous #{{ index + 1 }}</span>
</span>

<div flex="~ gap-2 items-start wrap">
<div flex="~ gap-2 items-start">
<SummarizeItem
icon="i-ph-file-magnifying-glass-duotone"
:number="config.files?.length || 0"
Expand Down
2 changes: 1 addition & 1 deletion app/components/FileGroupItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function goToConfig(idx: number) {
<div flex="~ col gap-1" ml6 mt--2>
<div v-for="config, idx of group.configs" :key="idx" font-mono flex="~ gap-2">
<VDropdown>
<button badge>
<button badge text-start>
<ColorizedConfigName :name="config.name" :index="idx" />
</button>
<template #popper="{ shown }">
Expand Down

0 comments on commit 055a667

Please sign in to comment.