No, it has no effect. Try copying and pasting the code above again.
thatās strange then⦠i re-copied it and it still places the button on the left.
This is just plain HTML and CSS-inline, you can turn on āuse compiled CSSā to see if any other CSS is causing it. Apart from that, make sure that this richtext component does not need to be given a class name.
ok, thanks! I found the clash. I forgot to delete the code from the settings so it was appearing twice.
The button is on the right now.
Now that thatās out of the way, can I decrease the text font size or maybe reduce the column padding a bit? @Himaladin
.entryStyle textarea {
font-size:10px;
padding:12px 12px;
}
not noticing any difference
Have you given a class name?
yes, i gave it the class
Iām senile, it turns out you use number entry not text entry.
.entryStyle [data-testid="wf-input"] {
font-size:10px;
padding:12px 12px;
}
haha ok. It works now!
But I think it clashes with the rich text delete button. Did you try it?
Seems to pull the delete-button position down.
No. Itās not related. However, the problem is that the margin/padding of your entry when viewed on mobile and desktop may be different.
I had to decrease the delete-button margin to position it properly:
āmargin-top:-53px;ā
But it doesnāt work well in both mobile and desktop views.
I had to remove all of my delete buttons⦠undo wouldnāt fix them back.
Place your delete button below the entry number, not above it.
Later this afternoon I will give you the code to correct the default distance (margin/padding) from Glide which makes richtext unable to have consistent distance between the two devices.
they were below the entries.
I will wait for your fix before I put them back.
Iāve got the code. I was annoyed because the dashboard performance was very slow. This is the correct setting, you should copy it again.
<!--Delete Button-->
<div class="cross" style="float: right; margin:0px 2px 0 auto;
height: 25px;width: 25px; opacity:0.4;border-radius: 10px;
z-index: 5; filter:invert(0.1);"><img src="https://storage.googleapis.com/glide-prod.appspot.com/uploads-v2/ov2nF5ayQc4wK5jVvF4R/pub/pJe35hcDzEqIcW2idyHc.webp" alt="Cross Button" style="margin-top:-37px;"/></div>
Give the class a name you like or use ādelBtnā in your richtext component. This code will remove different margin-tops across mobile and desktop.
[data-testid="wire-container-delBtn"] {
margin-top:0 !important;
}
Why is it that when I start typing, the container height changes? I think this causes the displacement in the button position.
Yes, thatās a common behavior called auto-expanding in a textarea.
oh ok
/*delete button CSS*/
[data-testid="wire-container-deleteBtn"] {
margin-top:0 !important;
}
[data-testid="wire-container-deleteBtn"] [data-test="app-markdown-view"] {
position:absolute;
display:flex;
justify-content:flex-end;
left:auto;
right:calc(var(--container-x-pad) + 10px);
width:fit-content;
}
This was the cause of the buttons appearing on the right in the threeColumn container grid⦠but I need it to keep the container shape when entering texts or numbers⦠do you have any suggestions?
Just need this with different classes. Does this interfere with your input?