Skip to content
Snippets Groups Projects
Unverified Commit 4216aeb9 authored by Samuel Couillard's avatar Samuel Couillard Committed by GitHub
Browse files

Fix AdminTables Placeholders (#4691)

* Reduce width of RecordingsRowPlaceholder tds

* Tune Placeholders width

* Increase ServerRoomsPlaceholder room name width a bit
parent a56b84f8
Branches
Tags
No related merge requests found
...@@ -108,7 +108,6 @@ ...@@ -108,7 +108,6 @@
} }
#recordings-table { #recordings-table {
@include media-breakpoint-down(xl) { @include media-breakpoint-down(xl) {
td, tr { td, tr {
// Name and recording date // Name and recording date
......
...@@ -616,21 +616,29 @@ input[type="range"]:focus::-moz-range-thumb { ...@@ -616,21 +616,29 @@ input[type="range"]:focus::-moz-range-thumb {
} }
// Table Placeholders length // Table Placeholders length
.xs-td-placeholder {
min-width: $column-xs-width;
}
.sm-td-placeholder { .sm-td-placeholder {
min-width: 100px; min-width: $column-sm-width;
} }
.md-td-placeholder { .md-td-placeholder {
min-width: 125px; min-width: $column-md-width;
} }
.lg-td-placeholder { .lg-td-placeholder {
min-width: 200px; min-width: $column-lg-width
} }
.xl-td-placeholder { //.xl-td-placeholder {
min-width: 300px; // min-width: 300px;
} //
// @include media-breakpoint-down(xxl) {
// width: 150px;
// }
//}
// Circles & Avatars // Circles & Avatars
.small-circle { .small-circle {
......
...@@ -3,10 +3,10 @@ import { Stack } from 'react-bootstrap'; ...@@ -3,10 +3,10 @@ import { Stack } from 'react-bootstrap';
import Placeholder from '../../shared_components/utilities/Placeholder'; import Placeholder from '../../shared_components/utilities/Placeholder';
import RoundPlaceholder from '../../shared_components/utilities/RoundPlaceholder'; import RoundPlaceholder from '../../shared_components/utilities/RoundPlaceholder';
export default function RecordingsListRowPlaceHolder() { export default function ManageUsersRowPlaceHolder() {
return ( return (
<tr> <tr>
<td className="border-0 py-2 xl-td-placeholder"> <td className="border-0 py-2 lg-td-placeholder">
<Stack direction="horizontal"> <Stack direction="horizontal">
<RoundPlaceholder size="small" className="ms-1 me-3 mt-1" /> <RoundPlaceholder size="small" className="ms-1 me-3 mt-1" />
<Stack> <Stack>
...@@ -15,11 +15,11 @@ export default function RecordingsListRowPlaceHolder() { ...@@ -15,11 +15,11 @@ export default function RecordingsListRowPlaceHolder() {
</Stack> </Stack>
</Stack> </Stack>
</td> </td>
<td className="border-0 py-3 xl-td-placeholder"> <td className="border-0 py-3 lg-td-placeholder">
<Placeholder width={10} size="md" /> <Placeholder width={10} size="md" />
</td> </td>
<td className="border-0 py-3 md-td-placeholder"> <td className="border-0 py-3 sm-td-placeholder">
<Placeholder width={6} size="md" /> <Placeholder width={12} size="md" />
</td> </td>
</tr> </tr>
); );
......
...@@ -4,21 +4,26 @@ import Placeholder from '../../shared_components/utilities/Placeholder'; ...@@ -4,21 +4,26 @@ import Placeholder from '../../shared_components/utilities/Placeholder';
export default function ServerRoomsRowPlaceHolder() { export default function ServerRoomsRowPlaceHolder() {
return ( return (
<tr> <tr>
<td className="border-0 py-2 xl-td-placeholder"> {/* Name */}
<Placeholder width={6} size="md" /> <td className="border-0 py-2 lg-td-placeholder">
<Placeholder width={10} size="lg" />
</td>
<td className="border-0 py-4 lg-td-placeholder">
<Placeholder width={8} size="md" /> <Placeholder width={8} size="md" />
<Placeholder width={10} size="lg" />
</td> </td>
<td className="border-0 py-4 md-td-placeholder"> {/* Owner name */}
<td className="border-0 py-4 sm-td-placeholder">
<Placeholder width={12} size="md" /> <Placeholder width={12} size="md" />
</td> </td>
{/* Room ID */}
<td className="border-0 py-4 sm-td-placeholder"> <td className="border-0 py-4 sm-td-placeholder">
<Placeholder width={2} size="md" /> <Placeholder width={12} size="md" />
</td> </td>
<td className="border-0 py-4 sm-td-placeholder"> {/* # of participants */}
<Placeholder width={10} size="md" /> <td className="border-0 py-4 xs-td-placeholder">
<Placeholder width={6} size="md" />
</td>
{/* status */}
<td className="border-0 py-4 xs-td-placeholder">
<Placeholder width={12} size="md" />
</td> </td>
</tr> </tr>
); );
......
...@@ -6,7 +6,8 @@ import RoundPlaceholder from '../shared_components/utilities/RoundPlaceholder'; ...@@ -6,7 +6,8 @@ import RoundPlaceholder from '../shared_components/utilities/RoundPlaceholder';
export default function RecordingsListRowPlaceHolder() { export default function RecordingsListRowPlaceHolder() {
return ( return (
<tr> <tr>
<td className="border-0 pt-2 xl-td-placeholder"> {/* Avatar and Name */}
<td className="border-0 pt-2 lg-td-placeholder">
<Stack direction="horizontal"> <Stack direction="horizontal">
<RoundPlaceholder size="small" className="ms-1 me-3" /> <RoundPlaceholder size="small" className="ms-1 me-3" />
<Stack> <Stack>
...@@ -15,16 +16,20 @@ export default function RecordingsListRowPlaceHolder() { ...@@ -15,16 +16,20 @@ export default function RecordingsListRowPlaceHolder() {
</Stack> </Stack>
</Stack> </Stack>
</td> </td>
<td className="border-0 pt-3 sm-td-placeholder"> {/* Length */}
<Placeholder width={12} size="md" /> <td className="border-0 pt-3 xs-td-placeholder">
<Placeholder width={8} size="md" />
</td> </td>
<td className="border-0 pt-3 sm-td-placeholder"> {/* # of Users */}
<td className="border-0 pt-3 xs-td-placeholder">
<Placeholder width={4} size="md" /> <Placeholder width={4} size="md" />
</td> </td>
{/* Visibility */}
<td className="border-0 pt-3 md-td-placeholder"> <td className="border-0 pt-3 md-td-placeholder">
<Placeholder width={12} size="md" /> <Placeholder width={12} size="md" />
</td> </td>
<td className="border-0 pt-3 xl-td-placeholder"> {/* Formats */}
<td className="border-0 pt-3 md-td-placeholder">
<Placeholder width={10} size="md" /> <Placeholder width={10} size="md" />
</td> </td>
</tr> </tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment