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

fixed Issue :77 #78

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion src/components/TitleBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function TitleBar({
</div>
</div>

<div className="grid gap-1 grid-rows-none mb-8 sm:grid-flow-col-dense sm:grid-rows-1 sm:place-content-end my-5">
<div className="vpill ml-auto flex flex-row justify-around w-[900px] ">
{pills?.map(({ title, value }) => (
<ValuePill
key={title}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ValuePill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ export const ValuePill: React.FC<Props> = ({ title, value, isLoading }) => {
return (
<div
className={clsx(
'shadow-xs rounded-lg translate-x-0',
'shadow-xs ne rounded-lg translate-x-0',
isLoading
? 'bg-slate-200 dark:bg-slate-800 animate-pulse'
: 'bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 dark:text-gray-200 opacity-100'
)}
>
<div
className={clsx(
'flex items-center justify-between rounded-lg transition-all',
'flex mr-[5px] nn items-center justify-between rounded-lg transition-all',
isLoading ? 'opacity-0' : 'opacity-100'
)}
>
Expand Down
34 changes: 34 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,37 @@ td {
border: 1px solid theme(colors.slate.600);
}
}

@media screen and (min-width: 850px) and (max-width: 1220px) {
.vpill {
margin-left: auto;
display: flex !important;
flex-direction: row !important;
justify-content: flex-end;
width: 500px;
}
.nn {
width:180px !important;
}
.ne{
margin-right: 10px;
/* width: 200px; */
}
}
@media screen and (max-width: 1120px) {
.vpill {
margin-left: auto;
display: flex !important;
flex-direction: column !important;
justify-content: flex-end;
width: 300px !important;
}
.nn {
width:290px !important;
}
.ne{
margin-right: 10px;
margin-bottom: 10px;
margin-top: 2px;
}
}