CLASSROOMIO-T-3: Mobile improvments

This commit is contained in:
rotimi-best
2021-09-17 07:48:26 +03:00
parent 2edfee4990
commit 984a3d5e07
5 changed files with 41 additions and 35 deletions
+4 -4
View File
@@ -141,7 +141,7 @@
<p class="text-lg w-2/4">Name</p>
<p class="text-lg w-1/4 ">Role</p>
<RoleBasedSecurity allowedRoles={[1, 2]}>
<p class="text-lg w-20" />
<p class="hidden lg:block text-lg w-20" />
</RoleBasedSecurity>
</div>
@@ -149,7 +149,7 @@
<div class="flex relative items-center p-3 {borderBottomGrey}">
{#if !shouldEditMemberId}
<p
class="mr-2 w-20 text-center {!isStudent &&
class="mr-2 w-10 text-center {!isStudent &&
'hover:bg-gray-100 cursor-pointer'} p-3"
on:click={() => !isStudent && handleEditStudentIdMode()}
>
@@ -160,7 +160,7 @@
bind:value={person.assigned_student_id}
type="string"
placeholder="Unique ID"
className="w-24"
className="w-20"
onChange={() => editMemberId(person)}
/>
{/if}
@@ -199,7 +199,7 @@
<p class="text-lg w-1/4 ">{ROLE_LABEL[person.role_id]}</p>
<RoleBasedSecurity allowedRoles={[1, 2]}>
<div class="w-20">
<div class="hidden lg:block w-20">
{#if person.profile_id !== $profile.id}
<IconButton
onClick={() => {
+4 -1
View File
@@ -24,6 +24,7 @@
} from '../../../utils/services/submissions';
import { formatAnswers } from '../../../components/Course/function';
import { snackbarStore } from '../../../components/Snackbar/store';
import { SNACKBAR_SEVERITY } from '../../../components/Snackbar/constants';
const flipDurationMs = 300;
@@ -168,9 +169,11 @@
{ returning: 'minimal' }
).then((res) => console.log('Updated submission', res));
await Promise.all(updates);
$snackbarStore.open = true;
$snackbarStore.message = `Saved successfully`;
$snackbarStore.severity = SNACKBAR_SEVERITY.SUCCESS;
await Promise.all(updates);
}
onMount(async () => {
+1 -1
View File
@@ -78,7 +78,7 @@
<div class="h-40 text-md flex items-center justify-center flex-col">
<p class="">
A link has been sent to your email. Please check both your
<strong>spam </strong>and your<strong> inbox</strong>.
<strong>spam </strong>and your<strong>&nbsp; inbox</strong>.
</p>
<p class="mt-2 underline">
If our email is in your spam, do make sure you mark our email