{cell.getValue()}
@@ -118,7 +123,8 @@ const M3UTable = () => {
{
header: 'Max Streams',
accessorKey: 'max_streams',
- size: 200,
+ size: 120,
+ minSize: 80,
},
{
header: 'Status',
@@ -132,12 +138,14 @@ const M3UTable = () => {
return generateStatusString(refreshProgress[row.id]);
},
- size: 200,
+ size: 150,
+ minSize: 80,
},
{
header: 'Active',
accessorKey: 'is_active',
- size: 100,
+ size: 80,
+ minSize: 60,
sortingFn: 'basic',
mantineTableBodyCellProps: {
align: 'left',
@@ -155,6 +163,8 @@ const M3UTable = () => {
{
header: 'Updated',
accessorFn: (row) => dayjs(row.updated_at).format('MMMM D, YYYY h:mma'),
+ size: 180,
+ minSize: 100,
enableSorting: false,
},
],
@@ -239,6 +249,13 @@ const M3UTable = () => {
density: 'compact',
},
enableRowActions: true,
+ positionActionsColumn: 'last',
+ displayColumnDefOptions: {
+ 'mrt-row-actions': {
+ size: 120, // Make action column wider
+ minSize: 120, // Ensure minimum width for action buttons
+ },
+ },
renderRowActions: ({ row }) => (
<>
{
mantineTableContainerProps: {
style: {
height: 'calc(40vh - 10px)',
+ overflowX: 'auto', // Ensure horizontal scrolling works
},
},
});
diff --git a/frontend/src/components/tables/StreamsTable.jsx b/frontend/src/components/tables/StreamsTable.jsx
index c899fda9..078e24d9 100644
--- a/frontend/src/components/tables/StreamsTable.jsx
+++ b/frontend/src/components/tables/StreamsTable.jsx
@@ -156,7 +156,7 @@ const StreamRowActions = ({
);
};
-const StreamsTable = ({}) => {
+const StreamsTable = ({ }) => {
const theme = useMantineTheme();
/**
@@ -177,7 +177,7 @@ const StreamsTable = ({}) => {
// const [allRowsSelected, setAllRowsSelected] = useState(false);
const [pagination, setPagination] = useState({
pageIndex: 0,
- pageSize: 250,
+ pageSize: 50,
});
const [filters, setFilters] = useState({
name: '',
@@ -606,23 +606,22 @@ const StreamsTable = ({}) => {
{/* Top toolbar with Remove, Assign, Auto-match, and Add buttons */}
- {selectedStreamIds.length > 0 && (
- }
- variant="light"
- size="xs"
- onClick={addStreamsToChannel}
- p={5}
- color={theme.tailwind.green[5]}
- style={{
- borderWidth: '1px',
- borderColor: theme.tailwind.green[5],
- color: 'white',
- }}
- >
- Add Streams to Channel
-
- )}
+ }
+ variant={selectedStreamIds.length > 0 && selectedChannelIds.length === 1 ? "light" : "default"}
+ size="xs"
+ onClick={addStreamsToChannel}
+ p={5}
+ color={selectedStreamIds.length > 0 && selectedChannelIds.length === 1 ? theme.tailwind.green[5] : undefined}
+ style={selectedStreamIds.length > 0 && selectedChannelIds.length === 1 ? {
+ borderWidth: '1px',
+ borderColor: theme.tailwind.green[5],
+ color: 'white',
+ } : undefined}
+ disabled={!(selectedStreamIds.length > 0 && selectedChannelIds.length === 1)}
+ >
+ Add Streams to Channel
+
{
),
},
{
- header: 'Desecription',
+ header: 'Description',
accessorKey: 'description',
enableSorting: false,
Cell: ({ cell }) => (
diff --git a/frontend/src/pages/ContentSources.jsx b/frontend/src/pages/ContentSources.jsx
index eb62fe49..24e736d4 100644
--- a/frontend/src/pages/ContentSources.jsx
+++ b/frontend/src/pages/ContentSources.jsx
@@ -15,7 +15,9 @@ const M3UPage = () => {
diff --git a/version.py b/version.py
index 9339fcbd..25e27d60 100644
--- a/version.py
+++ b/version.py
@@ -1,5 +1,5 @@
"""
Dispatcharr version information.
"""
-__version__ = '0.3.3' # Follow semantic versioning (MAJOR.MINOR.PATCH)
+__version__ = '0.4.0' # Follow semantic versioning (MAJOR.MINOR.PATCH)
__timestamp__ = None # Set during CI/CD build process