Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed collection-info table-Issue#206 #706

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
'd-none': object.isCut && hideInvisible,
}"
>
<td>#{{ i }}</td>
<td>
<td data-label="No.">#{{ i }}</td>
<td data-label="Selection">
<div
*ngIf="object.uuid"
class="row justify-content-center icon-wrapper"
Expand All @@ -110,7 +110,7 @@
</button>
</div>
</td>
<td>
<td data-label="Label">
<div class="row m-0 add-label">
<div class="col-10 p-0">
<input
Expand All @@ -133,7 +133,10 @@
</div>
</div>
</td>
<td *ngFor="let column of collectionColumns">
<td
*ngFor="let column of collectionColumns"
[attr.data-label]="getPrettySymbol(column)"
>
{{ object[column] }}
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
@media screen and (max-width: 400px) {
.collectionsInfo table,
.collectionsInfo thead,
.collectionsInfo tbody,
.collectionsInfo th,
.collectionsInfo td,
.collectionsInfo tr {
display: block;
}

.collectionsInfo thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}

.collectionsInfo tr {
margin: 0 0 1rem 0;
}

.collectionsInfo td {
border: none;
position: relative;
padding-left: 50%;
text-align: left;
}

.collectionsInfo td::before {
position: absolute;
top: 0;
left: 0;
width: 45%;
padding-right: 10px;
white-space: nowrap;
content: attr(data-label);
font-weight: bold;
}
}

.collectionsInfo {
height: 95%;

Expand Down Expand Up @@ -105,6 +144,8 @@
}

td {
min-height: 20px;

.object-select {
position: relative;
width: 1.6rem;
Expand Down
Loading