Skip to content

Commit

Permalink
Add ui fixe
Browse files Browse the repository at this point in the history
  • Loading branch information
marosvolgyiz committed Dec 9, 2024
1 parent a90333b commit 70daded
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 7 deletions.
18 changes: 18 additions & 0 deletions apps/sensenet/src/components/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@ export function Breadcrumbs<T extends GenericContent>(props: BreadcrumbProps<T>)
))}
<CopyPath copyText={props.items[props.items.length - 1].title} />
</MUIBreadcrumbs>
<>
<b className="ContentExtraInfo">
<span title="DisplayName">{props.items[props.items.length - 1].content.DisplayName}</span>
<span title="ContentType" className="ContentTypeSpan">
(
<a
href={`/content-types/explorer/edit-binary?content=%2FGenericContent%2FFolder%2F${
props.items[props.items.length - 1].content.Type
}`}
target="_blank"
rel="noreferrer">
{props.items[props.items.length - 1].content.Type}
</a>
)
</span>
</b>
</>

{contextMenuItem ? (
<ContentContextMenu
isOpened={isContextMenuOpened}
Expand Down
1 change: 0 additions & 1 deletion apps/sensenet/src/components/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const Dashboard = () => {
const [data, setData] = useState<DashboardData>()
const logger = useLogger('Dashboard')
const [isAdmin, setIsAdmin] = useState(false)

useEffect(() => {
;(async () => {
const response = await repository.executeAction<any, DashboardData>({
Expand Down
2 changes: 1 addition & 1 deletion apps/sensenet/src/components/document-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const useStyles = makeStyles((theme: Theme) => {
padding: '20px',
bottom: 0,
textAlign: 'right',
right: '7%',
right: '1%',
},
})
})
Expand Down
2 changes: 1 addition & 1 deletion apps/sensenet/src/components/editor/sn-monaco-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const useStyles = makeStyles(() => {
padding: '20px',
bottom: 0,
textAlign: 'right',
right: '7%',
right: '1%',
},
form: {
width: '100%',
Expand Down
4 changes: 2 additions & 2 deletions apps/sensenet/src/components/view-controls/common/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { globals } from '../../../globalStyles'
const useStyles = makeStyles(() => {
return createStyles({
grid: {
padding: '14px 14px 0 14px',
padding: '14px 14px 0 134px',
overflowY: 'auto',
maxWidth: '100%',
maxHeight: `calc(100% - ${globals.common.formActionButtonsHeight}px - ${globals.common.formTitleHeight}px)`,
Expand All @@ -15,7 +15,7 @@ const useStyles = makeStyles(() => {
position: 'absolute',
padding: '20px',
bottom: 0,
right: '7%',
right: '1%',
},
})
})
Expand Down
2 changes: 1 addition & 1 deletion apps/sensenet/src/components/wopi-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const useStyles = makeStyles(() => {
padding: '20px',
bottom: 0,
textAlign: 'right',
right: '7%',
right: '1%',
},
wopiWrapper: {
width: '100%',
Expand Down
12 changes: 11 additions & 1 deletion apps/sensenet/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@ div[class*='makeStyles-actionButtonWrapper'] {
button.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-containedPrimary[type='submit'] {
margin-left: 0px;
}

.ContentExtraInfo {
position: absolute;
right: 15px;
}
.ContentExtraInfo .ContentTypeSpan {
padding-left: 5px;
padding-right: 5px;
}
.ContentExtraInfo .ContentTypeSpan a {
color: #0292db;
}
/*.leftTree .MuiListItemIcon-root {
border-left: 2px dotted #ccc;
padding-left: 5px;
Expand Down

0 comments on commit 70daded

Please sign in to comment.