mirror of
https://github.com/directus/directus.git
synced 2026-01-24 03:17:56 -05:00
Fix spacings and icons on presentation link buttons (#6361)
* Fixed spacings between presentation-link buttons * Fixed cut off icons on persentation-link buttons * Use flex gap instead of margin Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -214,7 +214,6 @@ body {
|
||||
|
||||
&.left {
|
||||
margin-right: 8px;
|
||||
margin-left: -4px;
|
||||
|
||||
&.small {
|
||||
margin-right: 4px;
|
||||
@@ -223,7 +222,6 @@ body {
|
||||
}
|
||||
|
||||
&.right {
|
||||
margin-right: -6px;
|
||||
margin-left: 6px;
|
||||
|
||||
&.small {
|
||||
|
||||
@@ -24,7 +24,7 @@ type Link = {
|
||||
icon: string;
|
||||
label: string;
|
||||
type: string;
|
||||
url: string;
|
||||
url?: string;
|
||||
};
|
||||
|
||||
export default defineComponent({
|
||||
@@ -44,7 +44,7 @@ export default defineComponent({
|
||||
const linksParsed = computed(() => {
|
||||
return props.links.map((link) => ({
|
||||
...link,
|
||||
url: render(link.url, values.value),
|
||||
url: render(link.url ?? '', values.value),
|
||||
}));
|
||||
});
|
||||
|
||||
@@ -59,13 +59,10 @@ export default defineComponent({
|
||||
.presentation-links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.action {
|
||||
& + & {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
&.info {
|
||||
--v-button-icon-color: var(--white);
|
||||
--v-button-background-color: var(--primary);
|
||||
|
||||
Reference in New Issue
Block a user