Skip to content

Commit

Permalink
Merge pull request #349 from credebl/minor-css-issues
Browse files Browse the repository at this point in the history
fix:Endorsement pop-up modal responsiveness
  • Loading branch information
nishad-ayanworks authored Oct 16, 2023
2 parents 53383df + 3aa4776 commit 1df3f07
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 23 deletions.
8 changes: 4 additions & 4 deletions src/components/Ecosystem/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,12 @@ const Dashboard = () => {
>
<div>Edit Ecosystem</div>
</Dropdown.Item>
<Dropdown.Item>
{/* <Dropdown.Item>
<div>Enable/Disable Ecosystem</div>
</Dropdown.Item>
<Dropdown.Item>
</Dropdown.Item> */}
{/* <Dropdown.Item>
<div>Manual Registration</div>
</Dropdown.Item>
</Dropdown.Item> */}
</Dropdown>
) : (
<svg
Expand Down
10 changes: 6 additions & 4 deletions src/components/Ecosystem/Endorsement/EndorsementPopup.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button, Modal, Spinner } from 'flowbite-react';
import { EndorsementStatus } from '../../../common/enums';
import { EndorsementStatus, EndorsementType } from '../../../common/enums';
import {
ICheckEcosystem,
checkEcosystem,
Expand Down Expand Up @@ -114,15 +114,17 @@ const EndorsementPopup = (props: {
};

return (
<Modal show={props.openModal} onClose={() => {
<Modal
className='h-full'
show={props.openModal} onClose={() => {
props.closeModal()
setErrMsg(null)
}} size="xl">
<Modal.Header>
{isEcosystemData?.isEcosystemLead ? (
<div>Requested {props.endorsementData?.type}</div>
<div>Requested {props.endorsementData?.type === EndorsementType.credDef ? "Credential Definition" : "Schema" }</div>
) : (
<div>View {props.endorsementData?.type}</div>
<div>View {props.endorsementData?.type === EndorsementType.credDef ? "Credential Definition" : "Schema"}</div>
)}
</Modal.Header>
<div className="mt-3 mx-3 -mb-3">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Resources/Schema/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ const CreateSchema = () => {
)}

{index === attribute.length - 1 && (
<div key={element.id} className="sm:w-2.5/3 text-red-600 sm:ml-0 md:ml-0 lg:ml-0">
<div key={element.id} className="justify-end sm:w-2.5/3 text-red-600 sm:ml-0 md:ml-0 lg:ml-0">

<Button
id="addSchemaButton"
Expand Down
14 changes: 2 additions & 12 deletions src/components/organization/EditOrgdetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ const EditOrgdetailsModal = (props: EditOrgdetailsModalProps) => {
setIsImageEmpty(true)
return true
}


const handleImageChange = (event: any): void => {
const handleImageChange = (event: any): void => {
setImgError('')
const reader = new FileReader()
const file = event?.target?.files
Expand Down Expand Up @@ -268,8 +266,6 @@ const EditOrgdetailsModal = (props: EditOrgdetailsModalProps) => {
alt="Jese picture"
/>
}


<div>
<h3 className="mb-1 text-xl font-bold text-gray-900 dark:text-white">
Organization Logo
Expand Down Expand Up @@ -320,7 +316,6 @@ const EditOrgdetailsModal = (props: EditOrgdetailsModalProps) => {

</div>


<div>
<div
className="block mb-2 text-sm font-medium text-gray-900 dark:text-white"
Expand Down Expand Up @@ -380,10 +375,7 @@ const EditOrgdetailsModal = (props: EditOrgdetailsModalProps) => {
onChange={() => setIsPublic(false)}
id="private"
name="private"
/>
<span className="ml-2 text-gray-900 dark:text-white">Private
<span className="block pl-6 text-gray-500 text-sm">Only the connected organization can see you organization details</span>
</span>
/><span className="ml-2 text-gray-900 dark:text-white">Private<span className="block pl-6 text-gray-500 text-sm">Only the connected organization can see your organization details</span></span>
</div>
<div>
<div
Expand All @@ -402,12 +394,10 @@ const EditOrgdetailsModal = (props: EditOrgdetailsModalProps) => {
id="public"
name="public"
/>

<span className="ml-2 text-gray-900 dark:text-white">Public
<span className="block pl-6 text-gray-500 text-sm">Your profile and organization details can be seen by everyone</span></span>
</div>
</div>

<Button type="submit"
isProcessing={loading}
className='mb-2 float-right text-base font-medium text-center text-white bg-primary-700 rounded-lg hover:!bg-primary-800 focus:ring-4 focus:ring-primary-300 sm:w-auto dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const SendInvitationModal = (props: {
onSubmit={formikHandlers.handleSubmit}
>
<div className="flex items-center justify-between">
<div className="w-2/3">
<div className="w-full">
<div className="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
<Label htmlFor="email2" value="Email" />
<span className="text-red-500 text-xs">*</span>
Expand All @@ -204,7 +204,7 @@ const SendInvitationModal = (props: {
)}
</div>

<div className="w-1/3">
<div className="">
<Button
type="submit"
className="mt-2 ml-4 text-base font-medium text-center text-white bg-primary-700 hover:!bg-primary-800 rounded-lg hover:bg-primary-800 focus:ring-4 focus:ring-primary-300 sm:w-auto dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800"
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ module.exports = {
'100/18rem': 'calc(100vh - 18rem)',
'100/25rem': 'calc(100vh - 25rem)'
},
maxHeight: {
'\[90vh\]': 'fit-content !important'
},
scale: {
'103': '1.03',
}
Expand Down

0 comments on commit 1df3f07

Please sign in to comment.