Skip to content

Commit

Permalink
Tweaks for various places where the track table appears so that the a…
Browse files Browse the repository at this point in the history
…utosizer can expand it to full size
  • Loading branch information
nukeop committed Sep 4, 2024
1 parent 94e776b commit 2d5184b
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/app/app/components/Dashboard/ChartsTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ChartsTab: React.FC<ChartsTabProps> = ({
}) => {
const { t } = useTranslation('dashboard');
return (
<Tab.Pane attached={false}>
<Tab.Pane attached={false} className={styles.popular_tracks_tab}>
<div
className={styles.popular_tracks_container}
>
Expand Down
8 changes: 8 additions & 0 deletions packages/app/app/components/Dashboard/ChartsTab/styles.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
@import "../../../vars";

.active.tab.popular_tracks_tab {
display: flex;
flex-flow: column;
flex: 1 1 auto;
}

.popular_tracks_container {
flex: 1 1 auto;

.popular_tracks_header {
display: flex;
flex-flow: row;
Expand Down
2 changes: 2 additions & 0 deletions packages/app/app/components/Dashboard/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
.dashboard_tabs {
position: relative;
height: 100%;
display: flex;
flex-flow: column;
}
}
2 changes: 1 addition & 1 deletion packages/app/app/components/FavoriteTracksView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const FavoriteTracksView: React.FC<FavoriteTracksViewProps> = ({
/>
}/>
</Header>
<Segment>
<Segment className={styles.favorite_tracks_segment}>
<TrackTableContainer
tracks={tracks}
onDelete={removeFavoriteTrack}
Expand Down
21 changes: 4 additions & 17 deletions packages/app/app/components/FavoriteTracksView/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,15 @@
@include emptyState;
}

.favorite_tracks_segment {
flex: 1 1 auto;
}

.header_container {
display: flex;
justify-content: space-between;
}

.button_container {
padding-top: 1rem;
margin-left: 1rem;
a {
padding: 0.375rem 2.5rem;
}
}

.play_button {
background: $pink;
color: $white;
border-radius: 1.5rem;
text-transform: uppercase;
display: inline-block;
margin: auto;
}

.tracks_container {
overflow: auto;
}
Expand Down
5 changes: 5 additions & 0 deletions packages/app/app/components/TagView/TagTopTracks/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
display: flex;
flex-flow: column;
width: 100%;
height: 510px;

.track {
transition: $short-duration;
Expand All @@ -22,6 +23,10 @@
max-width: 50%;
}

.track_table_wrapper {
margin-right: 1em;
}

table {
width: 100%;
}
Expand Down
3 changes: 1 addition & 2 deletions packages/ui/lib/components/TrackTable/HistoryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import TrackTable, { TrackTableProps } from '.';
import { Track } from '../../types';
import DateCell from './Cells/DateCell';
import { TrackTableColumn } from './types';
import { GridTrackTable } from '../GridTrackTable';
import { Column } from 'react-table';
import { TextHeader } from '../GridTrackTable/Headers/TextHeader';

Expand All @@ -26,7 +25,7 @@ const HistoryTable: React.FC<HistoryTableProps> = ({ tracks, dateHeader, ...prop
columnnWidth: '3em'
} as Column<HistoryTableTrack>], []);

return <GridTrackTable
return <TrackTable
className={styles.history_table}
tracks={tracks}
customColumns={customColumns}
Expand Down

0 comments on commit 2d5184b

Please sign in to comment.