style : style mobile

Deskripsi:
- update announcement
- update division new
- update project

No Issue
This commit is contained in:
lukman
2024-09-11 13:38:34 +08:00
parent 5a9b1c079f
commit 2078b57653
7 changed files with 35 additions and 27 deletions

View File

@@ -8,7 +8,7 @@ import { MdAccountCircle } from 'react-icons/md';
import { RiCircleFill } from 'react-icons/ri';
import { funGetAllProject } from '../lib/api_project';
import toast from 'react-hot-toast';
import { useShallowEffect } from '@mantine/hooks';
import { useMediaQuery, useShallowEffect } from '@mantine/hooks';
import { IDataProject } from '../lib/type_project';
import { useHookstate } from '@hookstate/core';
import _ from 'lodash';
@@ -52,6 +52,7 @@ export default function ListProject() {
const handleList = () => {
setIsList(!isList)
}
const isMobile = useMediaQuery('(max-width: 369px)');
return (
<Box mt={20}>
@@ -132,7 +133,7 @@ export default function ListProject() {
<Group justify='space-between' align='center'>
<Box>
<Box w={{
base: 230,
base: isMobile ? 200 : 230,
xl: 430
}}>
<Text truncate="end" pl={20}>