mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
Fixed table resizing
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<app-search-bar (resultsUpdated)="resultTable.results = $event"></app-search-bar>
|
<app-search-bar (resultsUpdated)="resultTable.results = $event"></app-search-bar>
|
||||||
<div class="ui celled two column grid">
|
<div class="ui celled two column grid">
|
||||||
<div class="row">
|
<div id="table-row" class="row">
|
||||||
<div class="column twelve wide">
|
<div id="table-column" class="column twelve wide">
|
||||||
<app-result-table #resultTable></app-result-table>
|
<app-result-table #resultTable></app-result-table>
|
||||||
</div>
|
</div>
|
||||||
<div id="sidebar-column" class="column four wide">
|
<div id="sidebar-column" class="column four wide">
|
||||||
|
|||||||
@@ -2,15 +2,25 @@
|
|||||||
display: contents;
|
display: contents;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.celled.grid {
|
.two.column.grid {
|
||||||
flex-grow: 1;
|
display: contents;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#table-row {
|
||||||
|
flex-grow: 1;
|
||||||
|
min-height: 0;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
#table-column {
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#sidebar-column {
|
#sidebar-column {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
min-width: 175px;
|
||||||
|
overflow: hidden;
|
||||||
.ui.celled.grid > .row > .column {
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,19 @@
|
|||||||
<table class="ui unstackable selectable single line striped celled table">
|
<table class="ui stackable selectable single fixed line striped compact small table">
|
||||||
|
<!-- TODO: maybe have some of these tags customizable? E.g. small/large/compact/padded -->
|
||||||
|
<!-- TODO: maybe make add the sortable class? -->
|
||||||
|
<!-- TODO: learn semantic themes in order to change the $mobileBreakpoint global variable (better search table adjustment) -->
|
||||||
<thead>
|
<thead>
|
||||||
|
<!-- NOTE: it would be nice to make this header sticky, but Fomantic-UI doesn't currently support that -->
|
||||||
<tr>
|
<tr>
|
||||||
<th class="collapsing">
|
<th id="checkboxColumn" class="collapsing">
|
||||||
<div class="ui checkbox">
|
<div class="ui checkbox">
|
||||||
<input type="checkbox">
|
<input type="checkbox">
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th>Name</th>
|
<th class="four wide">Name</th>
|
||||||
<th>Artist</th>
|
<th class="four wide">Artist</th>
|
||||||
<th>Album</th>
|
<th class="four wide">Album</th>
|
||||||
<th>Genre</th>
|
<th class="four wide">Genre</th>
|
||||||
<th>Year</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -24,7 +27,6 @@
|
|||||||
<td>{{result.artist}}</td>
|
<td>{{result.artist}}</td>
|
||||||
<td>{{result.album}}</td>
|
<td>{{result.album}}</td>
|
||||||
<td>{{result.genre}}</td>
|
<td>{{result.genre}}</td>
|
||||||
<td>{{result.year}}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -1,4 +1,11 @@
|
|||||||
|
:host {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
.ui.checkbox {
|
.ui.checkbox {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 17px;
|
}
|
||||||
|
|
||||||
|
#checkboxColumn {
|
||||||
|
width: 34.64px;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user