Skip to content

Commit 70daded

Browse files
committed
Add ui fixe
1 parent a90333b commit 70daded

File tree

7 files changed

+34
-7
lines changed

7 files changed

+34
-7
lines changed

apps/sensenet/src/components/Breadcrumbs.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,24 @@ export function Breadcrumbs<T extends GenericContent>(props: BreadcrumbProps<T>)
5252
))}
5353
<CopyPath copyText={props.items[props.items.length - 1].title} />
5454
</MUIBreadcrumbs>
55+
<>
56+
<b className="ContentExtraInfo">
57+
<span title="DisplayName">{props.items[props.items.length - 1].content.DisplayName}</span>
58+
<span title="ContentType" className="ContentTypeSpan">
59+
(
60+
<a
61+
href={`/content-types/explorer/edit-binary?content=%2FGenericContent%2FFolder%2F${
62+
props.items[props.items.length - 1].content.Type
63+
}`}
64+
target="_blank"
65+
rel="noreferrer">
66+
{props.items[props.items.length - 1].content.Type}
67+
</a>
68+
)
69+
</span>
70+
</b>
71+
</>
72+
5573
{contextMenuItem ? (
5674
<ContentContextMenu
5775
isOpened={isContextMenuOpened}

apps/sensenet/src/components/dashboard/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ const Dashboard = () => {
4848
const [data, setData] = useState<DashboardData>()
4949
const logger = useLogger('Dashboard')
5050
const [isAdmin, setIsAdmin] = useState(false)
51-
5251
useEffect(() => {
5352
;(async () => {
5453
const response = await repository.executeAction<any, DashboardData>({

apps/sensenet/src/components/document-viewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const useStyles = makeStyles((theme: Theme) => {
4545
padding: '20px',
4646
bottom: 0,
4747
textAlign: 'right',
48-
right: '7%',
48+
right: '1%',
4949
},
5050
})
5151
})

apps/sensenet/src/components/editor/sn-monaco-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const useStyles = makeStyles(() => {
4242
padding: '20px',
4343
bottom: 0,
4444
textAlign: 'right',
45-
right: '7%',
45+
right: '1%',
4646
},
4747
form: {
4848
width: '100%',

apps/sensenet/src/components/view-controls/common/styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { globals } from '../../../globalStyles'
44
const useStyles = makeStyles(() => {
55
return createStyles({
66
grid: {
7-
padding: '14px 14px 0 14px',
7+
padding: '14px 14px 0 134px',
88
overflowY: 'auto',
99
maxWidth: '100%',
1010
maxHeight: `calc(100% - ${globals.common.formActionButtonsHeight}px - ${globals.common.formTitleHeight}px)`,
@@ -15,7 +15,7 @@ const useStyles = makeStyles(() => {
1515
position: 'absolute',
1616
padding: '20px',
1717
bottom: 0,
18-
right: '7%',
18+
right: '1%',
1919
},
2020
})
2121
})

apps/sensenet/src/components/wopi-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const useStyles = makeStyles(() => {
2222
padding: '20px',
2323
bottom: 0,
2424
textAlign: 'right',
25-
right: '7%',
25+
right: '1%',
2626
},
2727
wopiWrapper: {
2828
width: '100%',

apps/sensenet/src/style.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,17 @@ div[class*='makeStyles-actionButtonWrapper'] {
2626
button.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-containedPrimary[type='submit'] {
2727
margin-left: 0px;
2828
}
29-
29+
.ContentExtraInfo {
30+
position: absolute;
31+
right: 15px;
32+
}
33+
.ContentExtraInfo .ContentTypeSpan {
34+
padding-left: 5px;
35+
padding-right: 5px;
36+
}
37+
.ContentExtraInfo .ContentTypeSpan a {
38+
color: #0292db;
39+
}
3040
/*.leftTree .MuiListItemIcon-root {
3141
border-left: 2px dotted #ccc;
3242
padding-left: 5px;

0 commit comments

Comments
 (0)