Skip to content

Commit 00a4c99

Browse files
MillenniumFalconMechanicNoopDog
authored andcommitted
Added intermediate tablet state. Fixed project release at 1024. Resolves #1121. (#1136)
1 parent b2e51a2 commit 00a4c99

File tree

1 file changed

+87
-14
lines changed

1 file changed

+87
-14
lines changed

spa/src/app/files/releases/release-table/release-table.component.scss

Lines changed: 87 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
/* Table */
2525
mat-table {
2626

27-
max-width: 720px; /* Match max width of table to max width of content above table */
28-
2927
/* Header row */
3028
mat-header-row {
3129
display: none;
@@ -84,7 +82,8 @@
8482
display: flex;
8583
}
8684

87-
/** Cap width of project title to force wrapping of longer titles (mobile first) */
85+
/** Cap width of project title to force wrapping of longer titles (mobile first ie this is modified for larger
86+
devices) */
8887
.project-title {
8988
max-width: 425px;
9089
}
@@ -124,15 +123,70 @@
124123
}
125124
}
126125

126+
:host-context(release) {
127+
128+
.release-tables {
129+
130+
mat-table {
131+
max-width: 720px; /* Match max width of table to max width of content above table - smaller devices only,
132+
this is modified by media queries for larger devices */
133+
}
134+
}
135+
}
136+
137+
:host-context(project-release) {
138+
139+
.release-tables {
140+
141+
mat-table {
142+
max-width: 600px; /* Match max width of table to max width of content above table - smaller devices only,
143+
this is modified by media queries for larger devices */
144+
}
145+
}
146+
}
147+
148+
/**
149+
* Small tablet +, medium handset +, small window + and, large table - and medium window - (special case to allow action
150+
* buttons to sit to the right of dataset details - for main release table only, and not project detail release table)
151+
*/
152+
@media screen and (min-width: 600px) and (max-width: 1023px) {
153+
154+
:host-context(release) {
155+
156+
.release-tables {
157+
158+
mat-table {
159+
160+
max-width: unset;
161+
162+
mat-row {
163+
position: relative;
164+
}
165+
166+
.project-title {
167+
max-width: unset;
168+
padding-right: 250px;
169+
}
170+
171+
.actions {
172+
position: absolute;
173+
align-self: flex-end;
174+
}
175+
}
176+
}
177+
}
178+
}
179+
127180
/**
128181
* Large tablet landscape +, medium window + (> 1024)
129182
*/
130183
@media screen and (min-width: 1024px) {
131184

132185
.release-tables {
133-
186+
134187
mat-table {
135-
max-width: 1440px; /* Snap width at large window width */
188+
max-width: 1440px !important; /* Snap width at large window width, override (!important) host context specific
189+
max-widths set on smaller breakpoints */
136190

137191
mat-header-row {
138192
border-bottom: 1px solid $hca-gray-light;
@@ -150,7 +204,7 @@
150204
}
151205

152206
.project-title {
153-
font-size: 12px; /** Set back to xxs (set to 14px for mobile first) */
207+
font-size: 12px; /** Set back to correct xxs sizing (default is overridden to 14px for mobile first) */
154208
}
155209
}
156210

@@ -187,25 +241,44 @@
187241
*/
188242
@media screen and (min-width: 1024px) and (max-width: 1108px) {
189243

190-
.release-tables {
191-
mat-table {
192-
.project-title {
193-
min-width: 200px;
194-
}
244+
:host-context(release) {
245+
246+
.release-tables {
247+
248+
mat-table {
249+
250+
.project-title {
251+
min-width: 185px;
252+
}
195253

196-
.dataset {
197-
min-width: 160px;
254+
.dataset {
255+
min-width: 140px;
256+
}
198257
}
199258
}
200259
}
201-
260+
}
261+
262+
/**
263+
* Custom range to handle case where long organ values overflow into development stage; reduce size of project title and
264+
* dataset to accommodate.
265+
*/
266+
@media screen and (min-width: 1024px) and (max-width: 1146px) {
267+
202268
/** Reduce dataset width further on project release page */
203269
:host-context(project-release) {
270+
204271
.release-tables {
272+
205273
mat-table {
274+
206275
.dataset {
207276
min-width: 100px;
208277
}
278+
279+
mat-header-cell, mat-cell {
280+
padding: 0 8px;
281+
}
209282
}
210283
}
211284
}

0 commit comments

Comments
 (0)