uibee 2.13.0 → 2.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "2.13.0",
3
+ "version": "2.13.1",
4
4
  "description": "Shared components, functions and hooks for reuse across Login projects",
5
5
  "homepage": "https://github.com/Login-Linjeforening-for-IT/uibee#readme",
6
6
  "bugs": {
@@ -130,12 +130,12 @@ export default function Body({ list, columns, menuItems, redirectPath, variant =
130
130
  <td
131
131
  key={col.key}
132
132
  className={`
133
- flex-1 px-6 py-4 whitespace-nowrap text-sm min-w-40 flex items-center text-login-100
133
+ flex-1 min-w-0 px-6 py-4 whitespace-nowrap text-sm flex items-center text-login-100
134
134
  ${variant === 'minimal' ? 'px-4! py-2!' : ''}
135
135
  `}
136
136
  >
137
- <div className='relative'>
138
- <h1 className={badgeClass}>
137
+ <div className='relative w-full min-w-0'>
138
+ <h1 className={`block max-w-full truncate ${badgeClass}`}>
139
139
  {formatValue(col.key, value as string | number)}
140
140
  </h1>
141
141
  </div>
@@ -53,16 +53,16 @@ export default function Header({ columns, hideMenu, variant = 'default' }: Heade
53
53
  <th
54
54
  key={key}
55
55
  className={`
56
- flex-1 px-6 py-3 text-xs font-medium uppercase tracking-wider text-left
56
+ flex-1 min-w-0 px-6 py-3 text-xs font-medium uppercase tracking-wider text-left
57
57
  ${variant === 'default' ? 'text-login-200' : 'text-login-100'}
58
- ${variant === 'minimal' ? 'px-4!!' : ''}
58
+ ${variant === 'minimal' ? 'px-4!' : ''}
59
59
  `}
60
60
  >
61
61
  <button
62
- className='flex flex-row items-center gap-2 group uppercase'
62
+ className='flex w-full min-w-0 flex-row items-center gap-2 group uppercase whitespace-nowrap'
63
63
  onClick={() => handleChange(key)}
64
64
  >
65
- {value}
65
+ <span className='min-w-0 truncate'>{value}</span>
66
66
  <span className='flex flex-col'>
67
67
  {column === key ? (
68
68
  order === 'asc' ? (
@@ -20,7 +20,7 @@ export default function Table({ data, columns, menuItems, redirectPath, variant
20
20
 
21
21
  return (
22
22
  <div className={`
23
- flex-1 flex flex-col min-h-0 overflow-x-auto h-full w-full
23
+ flex-1 flex flex-col min-h-0 overflow-x-auto overflow-y-hidden h-full w-full
24
24
  ${variant === 'default' ? 'bg-login-500/50 rounded-lg shadow border border-login-600' : ''}
25
25
  ${variant === 'minimal' ? 'bg-transparent' : ''}
26
26
  `}>