enzostvs HF staff commited on
Commit
c43830b
β€’
1 Parent(s): 3b75cc4

overflow model

Browse files
src/lib/components/models/drawer/Drawer.svelte CHANGED
@@ -62,11 +62,11 @@
62
  use:clickoutside on:clickoutside={handleClose}
63
  >
64
  <div class="p-8 overflow-auto">
65
- <header class="flex w-full justify-between items-start mb-6 pr-6">
66
- <div class="flex items-center justify-start gap-3 lg:gap-6">
67
  <img src={model?.image} class="lg:w-16 lg:h-16 w-12 h-12 rounded-xl bg-neutral-800 object-cover" alt={model?.id} />
68
- <div>
69
- <p class="text-neutral-300 font-semibold text-lg lg:text-2xl mb-1 truncate">
70
  <button class="underline text-white" on:click={handleClickAuthor}>{author}</button>/{repo}
71
  </p>
72
  <a href="https://huggingface.co/{model?.id}" target="_blank" class="text-neutral-400 underline hover:text-neutral-300 flex items-center justify-start gap-1">
 
62
  use:clickoutside on:clickoutside={handleClose}
63
  >
64
  <div class="p-8 overflow-auto">
65
+ <header class="flex w-full justify-between items-start mb-6 pr-6 gap-3">
66
+ <div class="flex items-center justify-start gap-3 lg:gap-6 w-full">
67
  <img src={model?.image} class="lg:w-16 lg:h-16 w-12 h-12 rounded-xl bg-neutral-800 object-cover" alt={model?.id} />
68
+ <div class="w-full truncate">
69
+ <p class="text-neutral-300 font-semibold text-lg lg:text-2xl mb-1 truncate w-full">
70
  <button class="underline text-white" on:click={handleClickAuthor}>{author}</button>/{repo}
71
  </p>
72
  <a href="https://huggingface.co/{model?.id}" target="_blank" class="text-neutral-400 underline hover:text-neutral-300 flex items-center justify-start gap-1">