1414 </button >
1515 </div >
1616 </fieldset >
17- <table class =" dependencies-table" >
18- <thead >
19- <tr >
20- <th />
21- <th v-for =" repo in repos" :key =" repo.id" >
22- <a :href =" repo.html_url" target =" _blank" >
23- {{ settings.displayOwner ? repo.full_name : repo.name }}
24- </a >
25- </th >
26- </tr >
27- </thead >
28- <tbody >
29- <tr v-for =" dep in dependencies.filter((dep) => !excludedDependencies.has(dep))" :key =" dep" >
30- <td :title =" dep" :style =" { color: composeHashColorFromString(dep) }" class =" chip" >
31- <button class =" icon" type =" button" title =" exclude dependency" @click =" hideDependency(dep)" >
32- <icon-x />
33- </button >
34- <a :href =" `https://npmjs.org/${dep}`" target =" _blank" class =" text-truncate" >
35- {{ dep }}
36- <div >{{ latestVersions[dep] ?? '???' }}</div >
37- </a >
38- </td >
39- <td v-for =" repo in repos" :key =" repo.id" :class =" versionDiffClass(dep, repo.dependencies![dep])" >
40- {{ repo.dependencies![dep] }}
41- </td >
42- </tr >
43- </tbody >
44- </table >
17+ <div class =" dependencies-table-wrapper" >
18+ <table class =" dependencies-table" >
19+ <thead >
20+ <tr >
21+ <th />
22+ <th v-for =" repo in repos" :key =" repo.id" >
23+ <a :href =" repo.html_url" target =" _blank" >
24+ {{ settings.displayOwner ? repo.full_name : repo.name }}
25+ </a >
26+ </th >
27+ </tr >
28+ </thead >
29+ <tbody >
30+ <tr v-for =" dep in dependencies.filter((dep) => !excludedDependencies.has(dep))" :key =" dep" >
31+ <td :title =" dep" :style =" { color: composeHashColorFromString(dep) }" class =" chip" >
32+ <button class =" icon" type =" button" title =" exclude dependency" @click =" hideDependency(dep)" >
33+ <icon-x />
34+ </button >
35+ <a :href =" `https://npmjs.org/${dep}`" target =" _blank" class =" text-truncate" >
36+ {{ dep }}
37+ <div >{{ latestVersions[dep] ?? '???' }}</div >
38+ </a >
39+ </td >
40+ <td v-for =" repo in repos" :key =" repo.id" :class =" versionDiffClass(dep, repo.dependencies![dep])" >
41+ {{ repo.dependencies![dep] }}
42+ </td >
43+ </tr >
44+ </tbody >
45+ </table >
46+ </div >
4547 </div >
4648</template >
4749<script setup lang="ts">
@@ -74,7 +76,7 @@ function versionDiffClass(packageName: string, version?: string): ReleaseType |
7476 </script >
7577<style lang="scss">
7678.dependencies {
77- overflow : auto ;
79+ overflow : hidden ;
7880 fieldset {
7981 margin-bottom : 1rem ;
8082 }
@@ -90,6 +92,9 @@ function versionDiffClass(packageName: string, version?: string): ReleaseType |
9092 }
9193 }
9294 }
95+ & -table-wrapper {
96+ overflow : auto ;
97+ }
9398 & -table {
9499 width : 100% ;
95100 cursor : default ;
0 commit comments