Skip to content

Commit

Permalink
style: Automated code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eea-jenkins committed Apr 3, 2024
1 parent 1582762 commit 6a5cc77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
7 changes: 4 additions & 3 deletions src/Blocks/DataTable/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import { getSchema } from './schema';
import { View } from './View';

const Edit = (props) => {
const schema = useMemo(() => getSchema(props.provider_data), [
props.provider_data,
]);
const schema = useMemo(
() => getSchema(props.provider_data),
[props.provider_data],
);

return (
<>
Expand Down
19 changes: 10 additions & 9 deletions src/table.less
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
.skeleton {
display: block;
background-color: rgba(0, 0, 0, 0.11);
height: auto;
border-radius: 6px;
margin-top: 0;
margin-bottom: 0;
transform-origin: 0 55%;
transform: scale(1, 0.60);
border-radius: 6px;
animation: skeleton-pulse 2s ease-in-out 0.5s infinite;
background-color: rgba(0, 0, 0, 0.11);
transform: scale(1, 0.6);
transform-origin: 0 55%;

&::before {
content: "\00a0";
content: '\00a0';
}
}

Expand All @@ -22,6 +22,7 @@
50% {
opacity: 0.4;
}

100% {
opacity: 1;
}
Expand Down Expand Up @@ -54,23 +55,23 @@
table.data-table {
&.borderless {
border: none !important;

tr > th:first-child,
tr > td:first-child {
padding-left: 0;
}

tr > th:last-child,
tr > td:last-child {
padding-right: 0;
}

th,
td {
border: none !important;
}
}

&.compacted {
tr td {
padding-top: 0.3em !important;
Expand Down

0 comments on commit 6a5cc77

Please sign in to comment.