Skip to content

Commit a02136c

Browse files
committed
front: update display in rolling stock editor
1 parent c02e207 commit a02136c

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ const RollingStockEditorForm = ({
250250

251251
const tabRollingStockCurves: TabProps = {
252252
id: 'rollingstock-curves',
253-
title: t('tabs.rollingStockCurves'),
253+
title: `${t('tabs.rollingStockCurves')} *`,
254254
withWarning: false,
255255
label: t('tabs.rollingStockCurves'),
256256
content: (

front/src/styles/scss/applications/rollingStockEditor/_rollingStockForm.scss

+43-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
.rollingstock-editor {
22
padding-top: 5rem;
33
max-height: 100vh;
4+
45
&-list {
56
height: 100%;
67
overflow-y: scroll;
8+
79
.rollingstock-body-container-img {
810
min-height: 2.4rem;
911
}
12+
1013
&-cards {
1114
.active {
1215
.rollingstock-card-header,
@@ -18,42 +21,53 @@
1821
}
1922
}
2023
}
24+
2125
&-form {
2226
height: 100%;
2327
width: 100%;
2428
justify-content: space-between;
2529
max-height: 88vh;
2630
overflow-y: scroll;
31+
2732
> .rollingstock-card-header {
2833
@media screen and (min-width: 1140px) {
2934
height: 3rem;
35+
3036
.rollingstock-title {
3137
height: 3rem;
38+
3239
.rollingstock-info {
3340
height: 3rem;
41+
3442
.rollingstock-info-begin {
3543
height: 3rem;
44+
3645
.rollingstock-info-series {
3746
height: 2.3rem;
3847
font-weight: bold;
3948
font-size: 1.5rem;
4049
}
50+
4151
.rollingstock-info-unit {
4252
margin-left: 0.5rem;
53+
4354
&.UM2,
4455
&.UM3 {
4556
font-size: large;
4657
}
4758
}
59+
4860
.rollingstock-info-subseries {
4961
font-size: 1rem;
5062
margin-left: 0.5rem;
5163
}
5264
}
65+
5366
.rollingstock-info-middle {
5467
font-size: 1rem;
5568
line-height: 1rem;
5669
}
70+
5771
.rollingstock-info-end {
5872
font-size: 1.2rem;
5973
}
@@ -65,8 +79,10 @@
6579
.rollingstock-card-body {
6680
height: 18rem;
6781
}
82+
6883
.form-control {
6984
height: auto;
85+
7086
.rs-form-buttons {
7187
margin-top: 1rem;
7288
}
@@ -93,70 +109,88 @@
93109
}
94110
}
95111
}
112+
96113
&-container {
97114
height: 100%;
115+
98116
.tab-content {
99117
background-color: var(--white);
100118
border-radius: 0.5rem;
101119
}
120+
102121
.tab-pane {
103122
padding-top: 1rem;
104123
}
124+
105125
.tabs {
106126
margin-bottom: 1rem;
107127
}
128+
108129
overflow-y: auto;
109130
width: 100%;
131+
110132
@media screen and (min-width: 767px) {
111133
padding-right: 1.5rem;
112134
width: 50%;
113135
position: fixed;
114136
right: 0;
115137
top: 80px;
116138
}
139+
117140
@media screen and (min-width: 1140px) {
118141
width: 60%;
119142
}
120143
}
121144
}
145+
122146
&borders {
123147
border: 0.2rem solid #d7d7d7;
124148
border-radius: 0.5rem;
125149
}
150+
126151
&-buttons {
127152
display: flex;
128153
width: 100%;
129154
justify-content: center;
130155
background-color: var(--blue);
131156
color: var(--white);
157+
132158
svg {
133159
margin: 0 30px;
134160
}
161+
135162
&-group {
136163
width: 6%;
137164
}
165+
138166
&.condensed {
139167
height: 100px;
140168
justify-content: space-between;
169+
141170
svg {
142171
justify-self: center;
143172
margin: 0;
144173
}
145174
}
146175
}
176+
147177
&-left-container {
148178
width: 94%;
149179
padding-right: 1.5rem;
180+
150181
@media screen and (min-width: 767px) {
151182
width: 45%;
152183
}
184+
153185
@media screen and (min-width: 1140px) {
154186
width: 37%;
155187
}
156188
}
189+
157190
&-unselected {
158191
margin: 0 auto;
159192
display: none;
193+
160194
@media screen and (min-width: 767px) {
161195
display: block;
162196
}
@@ -168,10 +202,12 @@
168202
justify-content: space-between;
169203
}
170204
}
205+
171206
label {
172207
white-space: normal;
173-
min-width: calc(50% - 0.5rem);
208+
min-width: calc(50%);
174209
}
210+
175211
.signaling-systems-label {
176212
min-width: 40%;
177213
}
@@ -225,6 +261,7 @@
225261
width: 40%;
226262
height: auto;
227263
border-radius: 0.3rem;
264+
228265
.dsg-cell-header {
229266
color: var(--blue);
230267
white-space: normal !important;
@@ -234,10 +271,12 @@
234271

235272
.rollingstock-editor-curves {
236273
background-color: var(--white);
274+
237275
.rollingstock-card-body {
238276
width: 60%;
239277
border: none;
240278
height: 20.75rem;
279+
241280
.rollingstock-curves {
242281
height: 20.75rem;
243282
}
@@ -247,6 +286,7 @@
247286
@media screen and (max-width: 1040px) {
248287
.rollingstock-editor-curves {
249288
flex-direction: column-reverse;
289+
250290
.rollingstock-card-body {
251291
margin-bottom: 1rem;
252292
width: 100%;
@@ -277,11 +317,13 @@
277317
visibility: hidden;
278318
}
279319
}
320+
280321
&:first-child {
281322
.selector-itemslist-wrapper::after {
282323
visibility: hidden;
283324
}
284325
}
326+
285327
&:nth-child(4) {
286328
.selector-itemslist {
287329
border-radius: 0.3rem;

0 commit comments

Comments
 (0)