Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: minor ui bugs and improvements #3401

Merged
merged 5 commits into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions ui/components/delete-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function DeleteModal({
leaveTo='opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95'
>
<Dialog.Panel
className={`relative w-full transform overflow-hidden rounded-xl border border-gray-100 bg-white p-8 text-left shadow-xl shadow-gray-300/10 transition-all sm:my-8 sm:max-w-md`}
className={`relative w-full transform break-words rounded-xl border border-gray-100 bg-white p-8 text-left shadow-xl shadow-gray-300/10 transition-all sm:my-8 sm:max-w-md`}
>
<div>
<div className='mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-red-100'>
Expand All @@ -60,9 +60,7 @@ export default function DeleteModal({
>
{title}
</Dialog.Title>
<div className='mt-2'>
<p className='text-sm text-gray-500'>{message}</p>
</div>
<div className='mt-2 text-sm text-gray-500'>{message}</div>
</div>
</div>
<div className='mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3'>
Expand Down
6 changes: 3 additions & 3 deletions ui/components/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function Table({
<tr key={headerGroup.id}>
{headerGroup.headers.map(header => (
<th
className='w-auto py-2 px-5 text-left font-medium first:w-[40%]'
className='w-auto py-2 px-5 text-left font-medium first:max-w-[40%]'
key={header.id}
>
{header.isPlaceholder
Expand All @@ -65,14 +65,14 @@ export default function Table({
{data &&
table.getRowModel().rows.map(row => (
<tr
className={`group ${
className={`group truncate ${
href ? 'cursor-pointer hover:bg-gray-50/50' : ''
}`}
key={row.id}
>
{row.getVisibleCells().map(cell => (
<td
className={`border-gray-100 text-sm ${
className={`border-gray-100 text-sm ${
href ? '' : 'px-5 py-2'
}`}
key={cell.id}
Expand Down
8 changes: 4 additions & 4 deletions ui/pages/account/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function PasswordReset({ user, onReset = () => {} }) {
export default function Account() {
const { user } = useUser()

const [showNotification, setshowNotification] = useState(false)
const [showNotification, setShowNotification] = useState(false)

const hasInfraProvider = user?.providerNames?.includes('infra')

Expand All @@ -152,9 +152,9 @@ export default function Account() {
<PasswordReset
user={user}
onReset={() => {
setshowNotification(true)
setShowNotification(true)
setTimeout(() => {
setshowNotification(false)
setShowNotification(false)
}, 5000)
}}
/>
Expand All @@ -164,7 +164,7 @@ export default function Account() {
{/* Notification */}
<Notification
show={showNotification}
setShow={setshowNotification}
setShow={setShowNotification}
text='Password Successfully Reset'
/>
</div>
Expand Down
Loading