Dear colleagues,
First of all sorry if this topic already was discussed. I tried to find it but without any success.
I want to minimize the unused margins/borders in the application.
Is there a easy way to do this?
I want to do this to have more space for the data.
I attached an image to be easier to be understood.
Table Margins / Border
-
- Posts: 28
- Joined: 2017-03-12 09:26
- Contact:
Table Margins / Border
- Attachments
-
- example.png (87.36 KiB) Viewed 2498 times
Best Regards,
Ionut Bocanet
Ionut Bocanet
Re: Table Margins / Border
Hi,
from the screenshot I assume you want to get more space on the children tabs.
You can try to use (either add it via the hooks/TABLENAME_dv.php, or via the hooks/TABLENAME-dv.js or even via the hooks/footer-extras.php)
Make sure you wait till the Child entries are created, otherwise it will fail.
from the screenshot I assume you want to get more space on the children tabs.
You can try to use (either add it via the hooks/TABLENAME_dv.php, or via the hooks/TABLENAME-dv.js or even via the hooks/footer-extras.php)
Make sure you wait till the Child entries are created, otherwise it will fail.
Code: Select all
<script>
$j(function() {
$j("[id*='-children']").parent().removeClass();
});
</script>
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
-
- Posts: 28
- Joined: 2017-03-12 09:26
- Contact:
Re: Table Margins / Border
Yes, i want more space for the data. I put the code in footer-extras.php and worked perfectly to the Child Table. Thank you so much; Greatly appreciated.
I would want also to decrease the margin 'x' also from Parent. See attached. It is possible of course.
I would want also to decrease the margin 'x' also from Parent. See attached. It is possible of course.
- Attachments
-
- example 2.png (231.32 KiB) Viewed 2471 times
Best Regards,
Ionut Bocanet
Ionut Bocanet
Re: Table Margins / Border
Hi,
you can change that in the dynamics.css. Edit line
@media (min-width: 768px){ .container{ width: 90% !important; } }
and put instead of 90% e.g. 98%.
Remember that the file will be overwritten once you regenerate your project.
you can change that in the dynamics.css. Edit line
@media (min-width: 768px){ .container{ width: 90% !important; } }
and put instead of 90% e.g. 98%.
Remember that the file will be overwritten once you regenerate your project.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Table Margins / Border
Hi
is there any other way to change the css file from hook folder maybe?
Is there also a way to reduce the space at the top?
is there any other way to change the css file from hook folder maybe?
Is there also a way to reduce the space at the top?
Re: Table Margins / Border
(1) Did you try to put CSS inis there any other way to change the css file from hook folder maybe?
hooks/header-extras.php
?header-extras.php
Code: Select all
<!-- file: hooks/header-extras.php -->
<style>
/* YOUR CSS DEFINITIONS HERE */
.container,
.container-fluid {
outline: 2px dashed slateblue;
margin-bottom: 15px;
}
</style>
(2) Alternatively, you can create your own custom CSS file and include it as stylesheet in
hooks/header-extras.php
. That's the way I usually do it for separating HTML, code and styles.header-extras.php
Code: Select all
<!-- file: hooks/header-extras.php -->
<link rel="stylesheet" href="hooks/header-extras.css">
header-extras.css
Code: Select all
/* file: hooks/header-extras.css */
.container,
.container-fluid {
outline: 2px dashed slateblue;
margin-bottom: 15px;
}
<style>...</style>
-tag in CSS file (because browser already knows that we are including CSS).(3) Don't forget to clear cache when reloading browser after CSS and JS changes. Otherwise the browser may use locally stored (=cached) resources instead of loading latest version from server.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools