-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve styling for admin pages (#179)
* Improve styling for admin pages * Add changelog * Improve test alert UIs
- Loading branch information
1 parent
6adf297
commit 55eeace
Showing
11 changed files
with
116 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"wptelegram-comments": patch | ||
"wptelegram-widget": patch | ||
"wptelegram-login": patch | ||
"wptelegram": patch | ||
--- | ||
|
||
Improved admin styles on smaller screens |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export type WpAdminContainerProps = { | ||
children?: React.ReactNode; | ||
sidebar: React.ReactNode; | ||
}; | ||
|
||
export function WpAdminContainer({ children, sidebar }: WpAdminContainerProps) { | ||
return ( | ||
<> | ||
<style> | ||
{ | ||
'#wpcontent { padding-left: 0 !important; padding-right: 0 !important; }' | ||
} | ||
</style> | ||
<div className="flex flex-col md:flex-row gap-4 p-3 sm:p-6"> | ||
<div className="md:basis-2/3 xl:basis-3/4 shrink-0">{children}</div> | ||
<div className="md:basis-1/3 xl:basis-1/4">{sidebar}</div> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters