1,481 questions
0
votes
1
answer
80
views
timefold mixed model, how to define CH
How to define CH, if both basic and list variables are included in the model, there is an error as below:
The entity (class com.app.planner.domain.Machine) has both basic and list variables and cannot ...
0
votes
0
answers
44
views
How to change the width of the scrollbar while still going full scroll area while dragging?
<ScrollArea className="w-full">
<ScrollAreaViewport className="pl-3 py-3 flex gap-3 whitespace-nowrap rounded-md overflow-x-auto" style={{ minHeight: "42px" }}&...
0
votes
2
answers
670
views
How to bundle Tailwind CSS styles in Published Component Library?
We’re building a UI component library on top of the Radix UI by using React, Vite, and Tailwind CSS. We're using a storybook to simulate the scenarios for the different components.
However, once we ...
0
votes
0
answers
215
views
Radix reusable UI dialog won't popup
I am following Radix UI dialog docs:
https://www.radix-ui.com/primitives/docs/components/dialog
and for some reason, I can't get the "your dialog" to work:
// your-dialog.jsx
import * as ...
0
votes
1
answer
69
views
I keep getting this issue Invalid block tag on line 5: 'static', expected 'endblock'. Did you forget to register or load this tag?
<!-- about.html -->
1 {% extends 'book/base.html' %}
2
3 {% block title %} About {% endblock %}
4 {% block extra_head %}
5 <link rel="stylesheet" href="{% static '...
1
vote
2
answers
89
views
Convert float base 2 to base 10 to 100+ decimal places [closed]
I'm trying to find more decimal places to the 'Prime Constant'. The output maxes out at 51 decimal places after using getcontext().prec=100
from decimal import *
getcontext().prec = 100
base = 2
s = &...
1
vote
1
answer
195
views
How to create `AsChild` or `Slot` within Blazor
I have been searching for an answer to this question for a long time. All I want is to be able to recreate the Radix's slot component/asChild pattern within Blazor.
e.g.
<Button AsChild>
<...
1
vote
0
answers
67
views
Can LibreOffice Base expand a subform record with a click on the main record
MS Access allows a subform in datasheet view to appear by clicking on the + to the left of the main form record. Can Libreoffice base do this? Can we get similar functionality somehow?
I know some ...
1
vote
0
answers
192
views
Remove selected value shadcn
Hello I am trying to make select value with an option to remove selected value but it doesn't work, select from shadcn/radix-ui.
I added everything on "SelectTrigger" and it is indeed ...
0
votes
3
answers
565
views
Convert character vector to factor and set levels using apply
I have written a function that creates a new data.frame with character vectors. I would like to convert those character vectors to factors using a the original data.frame object that has the same ...
2
votes
1
answer
1k
views
Issue with Drawer Height in iOS Safari for ShadCN Component
Issue with Drawer Height in iOS Safari for ShadCN Component
I’m working on implementing a form page within a drawer using the ShadCN component. The functionality involves clicking a button to open the ...
0
votes
1
answer
79
views
Is there a way to throw an error instead of a warning? [duplicate]
I am working on a test script of a package we are developing and I kinda got stuck with this.
I have a function which takes multiple formula (I won't go into details..) and want to test if the ...
0
votes
1
answer
243
views
Is there a standardized way to convert a string to an int in any base?
I am trying to create my own c function btoi(char *str, int base) that can take any base from 2 to 64. However after reading a bit I realise I might be opening a big can of worms.
I'm saying this ...
0
votes
1
answer
378
views
How to get back CSS Variable value from Radix UI Colors via Javascript/Typescript?
Quite simply I'm trying to dynamically get back the Radix Colors values in JavaScript, reasons for this requirement and why I am unable to hardcode the values is because I also generate these colors ...
2
votes
0
answers
350
views
Shadcn/radix asChild throws `React.Children.only expected to receive a single React element child.`
<SelectTrigger asChild>
<Button
variant="outline"
role="combobox"
className={cn(
"w-[200px] justify-between",
...