This commit is contained in:
MuslemRahimi 2024-07-28 20:33:15 +02:00
parent a19288a942
commit dc6d1d2f05
2 changed files with 29 additions and 22 deletions

View File

@ -8,6 +8,14 @@
export { className as class };
</script>
<tbody class={cn("[&_tr:last-child]:border-0", className)} {...$$restProps}>
<tbody class={cn("[&_tr:last-child]:border-0 scroller", className)} {...$$restProps}>
<slot />
</tbody>
</tbody>
<style>
.scroller {
scrollbar-width: thin;
}
</style>

View File

@ -458,7 +458,7 @@ const optionCompanySpread = {
</Card.Title>
</Card.Header>
<Card.Content class="grid gap-y-4">
<Table.Root class="overflow-x-scroll w-full no-scrollbar">
<Table.Root class="overflow-x-scroll w-full">
<Table.Header>
<Table.Row>
<Table.Head class="text-white">Rank</Table.Head>
@ -532,22 +532,21 @@ const optionCompanySpread = {
</div>
</section>
<style>
.app {
height: 150px;
max-width: 100%; /* Ensure chart width doesn't exceed the container */
}
@media (max-width: 640px) {
.app {
height: 120px;
}
}
.chart {
width: 100%;
}
</style>
<style>
.app {
height: 150px;
max-width: 100%; /* Ensure chart width doesn't exceed the container */
}
@media (max-width: 640px) {
.app {
height: 120px;
}
}
.chart {
width: 100%;
}
</style>