File tree Expand file tree Collapse file tree 5 files changed +62
-32
lines changed
kolibri/plugins/facility/assets/src/views
packages/kolibri-common/components Expand file tree Collapse file tree 5 files changed +62
-32
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
3
- <AppBarPage :title =" title" >
3
+ <AppBarPage
4
+ :title =" title"
5
+ :appearanceOverrides =" appearanceOverrides"
6
+ >
4
7
<template #default =" { pageContentHeight } " >
5
- <div style =" max-width : 1000px ; margin : 0 auto " >
6
- <slot :pageContentHeight =" pageContentHeight" ></slot >
7
- </div >
8
+ <slot :pageContentHeight =" pageContentHeight" ></slot >
8
9
</template >
9
10
</AppBarPage >
10
11
30
31
type: String ,
31
32
default: null ,
32
33
},
34
+ appearanceOverrides: {
35
+ type: Object ,
36
+ required: false ,
37
+ default: null ,
38
+ },
33
39
},
34
40
computed: {
35
41
/* Returns the given appBarTitle prop if given, otherwise will return
Original file line number Diff line number Diff line change 7
7
<template #default =" { pageContentHeight } " >
8
8
<KPageContainer
9
9
class =" page-container"
10
- :style =" { maxHeight: pageContentHeight + 24 + 'px' }"
10
+ :style =" { maxHeight: pageContentHeight + 24 + 'px', padding: '2em 2em 1em' }"
11
11
>
12
- <p >
13
- <KRouterLink
14
- :to =" $store.getters.facilityPageLinks.UserPage"
15
- icon =" back"
16
- :text =" backToUsers$()"
17
- />
18
- </p >
12
+ <KRouterLink
13
+ :to =" $store.getters.facilityPageLinks.UserPage"
14
+ icon =" back"
15
+ :text =" backToUsers$()"
16
+ />
19
17
<div class =" new-users-page-header" >
20
18
<h1 >{{ newUsers$() }}</h1 >
21
19
<div >
331
329
< style lang= " scss" scoped>
332
330
333
331
.page - container {
332
+ position: relative;
334
333
display: flex;
335
334
flex- direction: column;
336
335
max- width: 1000px ;
337
- margin: 24px auto;
336
+ margin: 0 auto auto;
338
337
}
339
338
340
339
.new - users- page- header {
341
340
display: flex;
342
341
gap: 16px ;
343
342
align- items: center;
344
343
justify- content: space- between;
345
- margin- bottom: 16px ;
344
+ margin: 1em 0 1 .5em ;
345
+
346
+ h1 {
347
+ margin: 0 ;
348
+ }
346
349
}
347
350
348
351
.empty - new - users {
374
377
}
375
378
}
376
379
380
+ / deep/ .main - wrapper {
381
+ // The default padding causes root scroll which defeats
382
+ // the purpose of our maxHeight style on the KPageContainer.
383
+ // Uses !important because the overridden style is inline
384
+ padding- bottom: 0 ! important;
385
+ }
386
+
377
387
< / style>
Original file line number Diff line number Diff line change 1
1
<template >
2
2
3
- <FacilityAppBarPage >
3
+ <FacilityAppBarPage
4
+ class =" wrapper"
5
+ :appearanceOverrides =" {
6
+ maxWidth: '1440px',
7
+ margin: '0 auto',
8
+ padding: '2em',
9
+ }"
10
+ >
4
11
<template #default =" { pageContentHeight } " >
5
12
<!-- Adding 24 pixels to the max height to prevent having too much bottom padding space -->
6
13
<KPageContainer
7
14
class =" flex-column"
8
- :style =" { maxHeight: pageContentHeight + 24 + 'px' }"
15
+ :style =" { maxHeight: pageContentHeight - 48 + 'px', padding: '2em 2em 1em ' }"
9
16
>
10
- <p >
11
- <KRouterLink
12
- v-if =" userIsMultiFacilityAdmin"
13
- :to =" {
14
- name: $store.getters.facilityPageLinks.AllFacilitiesPage.name,
15
- params: { subtopicName: 'UserPage' },
16
- }"
17
- icon =" back"
18
- :text =" coreString('changeLearningFacility')"
19
- />
20
- </p >
17
+ <KRouterLink
18
+ v-if =" userIsMultiFacilityAdmin"
19
+ :to =" {
20
+ name: $store.getters.facilityPageLinks.AllFacilitiesPage.name,
21
+ params: { subtopicName: 'UserPage' },
22
+ }"
23
+ icon =" back"
24
+ :text =" coreString('changeLearningFacility')"
25
+ />
21
26
<div class =" users-page-header" >
22
27
<h1 >{{ coreString('usersLabel') }}</h1 >
23
28
<div class =" users-page-header-actions" >
335
340
gap : 16px ;
336
341
align-items : center ;
337
342
justify-content : space-between ;
338
- margin-bottom : 16 px ;
343
+ margin-bottom : 1.5 em ;
339
344
340
345
h1 {
341
- margin : 16 px 0 ;
346
+ margin : 0 ;
342
347
}
343
348
344
349
.users-page-header-actions {
355
360
flex-direction : column ;
356
361
}
357
362
363
+ /deep/ .main-wrapper {
364
+ // The default padding causes root scroll which defeats
365
+ // the purpose of our maxHeight style on the KPageContainer.
366
+ // Uses !important because the overridden style is inline
367
+ padding-bottom : 0 !important ;
368
+ }
369
+
358
370
</style >
Original file line number Diff line number Diff line change 711
711
712
712
.move - down {
713
713
position: relative;
714
- margin- top: 24px ;
715
714
}
716
715
717
716
.role - badge {
731
730
.search - filter- section {
732
731
display: flex;
733
732
justify- content: start;
733
+ // Ensure space enough for keyboard nav outline before table content
734
+ padding- bottom: 0 .5em ;
734
735
}
735
736
736
737
.user - type- icon {
742
743
}
743
744
744
745
.filter - button {
745
- padding- top: 8px ;
746
+ padding- top: 10px ;
746
747
margin- left: 1em ;
747
748
}
748
749
Original file line number Diff line number Diff line change 125
125
<style lang="scss" scoped>
126
126
127
127
.pagination-nav {
128
- margin-bottom : 8px ;
128
+ /* Ensure space for pagination buttons on touch devices */
129
+ margin-top : 1em ;
129
130
text-align : right ;
130
131
}
131
132
You can’t perform that action at this time.
0 commit comments