File tree 6 files changed +83
-16
lines changed
frontends/dashboard/src/pages/dataset
6 files changed +83
-16
lines changed Original file line number Diff line number Diff line change @@ -2082,6 +2082,7 @@ export type PublicPageParameters = {
2082
2082
type ?: ( string ) | null ;
2083
2083
useGroupSearch ?: ( boolean ) | null ;
2084
2084
zIndex ?: ( number ) | null ;
2085
+ videoLink ?: ( string ) | null ;
2085
2086
} ;
2086
2087
2087
2088
export type PublicPageSearchOptions = {
Original file line number Diff line number Diff line change @@ -625,6 +625,23 @@ const PublicPageControls = () => {
625
625
options = { Object . keys ( HeroPatterns ) }
626
626
/>
627
627
</ div >
628
+ < div class = "grow" >
629
+ < div class = "flex items-center gap-1" >
630
+ < label class = "block" > Video Link</ label >
631
+ < Tooltip
632
+ tooltipText = "Text shown in the search box before user input"
633
+ body = { < FaRegularCircleQuestion class = "h-3 w-3 text-black" /> }
634
+ />
635
+ </ div >
636
+ < input
637
+ placeholder = "Insert video link..."
638
+ value = { extraParams . videoLink || "" }
639
+ onInput = { ( e ) => {
640
+ setExtraParams ( "videoLink" , e . currentTarget . value ) ;
641
+ } }
642
+ class = "block w-full rounded border border-neutral-300 px-3 py-1.5 shadow-sm placeholder:text-neutral-400 focus:outline-magenta-500 sm:text-sm sm:leading-6"
643
+ />
644
+ </ div >
628
645
</ div >
629
646
< Show when = { extraParams [ "heroPattern" ] ?. heroPatternName !== "Blank" } >
630
647
< div class = "flex flex-row items-center justify-start gap-4 pt-4" >
Original file line number Diff line number Diff line change @@ -3198,6 +3198,9 @@ impl DatasetConfigurationDTO {
3198
3198
z_index : page_parameters_self
3199
3199
. z_index
3200
3200
. or ( page_parameters_curr. z_index ) ,
3201
+ video_link : page_parameters_self
3202
+ . video_link
3203
+ . or ( page_parameters_curr. video_link ) ,
3201
3204
} ) ,
3202
3205
} ,
3203
3206
DISABLE_ANALYTICS : self
Original file line number Diff line number Diff line change @@ -246,6 +246,8 @@ pub struct PublicPageParameters {
246
246
pub brand_font_family : Option < String > ,
247
247
#[ serde( skip_serializing_if = "Option::is_none" ) ]
248
248
pub z_index : Option < i32 > ,
249
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
250
+ pub video_link : Option < String > ,
249
251
}
250
252
251
253
#[ utoipa:: path(
Original file line number Diff line number Diff line change 401
401
strokeWidth : 2 ,
402
402
roughness : 3 ,
403
403
bowing : 3 ,
404
- }
404
+ } ,
405
405
) ;
406
406
407
407
const arrowSize = 10 ;
413
413
{
414
414
stroke : window . paramsData . brandColor || "black" ,
415
415
strokeWidth : 2 ,
416
- }
416
+ } ,
417
417
) ;
418
418
rc . line (
419
419
startOpenX - 5 ,
423
423
{
424
424
stroke : window . paramsData . brandColor || "black" ,
425
425
strokeWidth : 2 ,
426
- }
426
+ } ,
427
427
) ;
428
428
429
429
let endRecX = 0 ;
444
444
strokeWidth : 2 ,
445
445
roughness : 3 ,
446
446
bowing : 3 ,
447
- }
447
+ } ,
448
448
) ;
449
449
450
450
rc . line (
455
455
{
456
456
stroke : window . paramsData . brandColor || "black" ,
457
457
strokeWidth : 2 ,
458
- }
458
+ } ,
459
459
) ;
460
460
rc . line (
461
461
startRecX - 5 ,
465
465
{
466
466
stroke : window . paramsData . brandColor || "black" ,
467
467
strokeWidth : 2 ,
468
- }
468
+ } ,
469
469
) ;
470
470
}
471
471
Original file line number Diff line number Diff line change @@ -571,6 +571,11 @@ video {
571
571
margin-bottom : -1rem ;
572
572
}
573
573
574
+ .mx-4 {
575
+ margin-left : 1rem ;
576
+ margin-right : 1rem ;
577
+ }
578
+
574
579
.mx-auto {
575
580
margin-left : auto;
576
581
margin-right : auto;
@@ -580,10 +585,6 @@ video {
580
585
margin-top : -0.5rem ;
581
586
}
582
587
583
- .mr-4 {
584
- margin-right : 1rem ;
585
- }
586
-
587
588
.mt-0\. 5 {
588
589
margin-top : 0.125rem ;
589
590
}
@@ -604,10 +605,6 @@ video {
604
605
margin-top : 1rem ;
605
606
}
606
607
607
- .mt-40 {
608
- margin-top : 10rem ;
609
- }
610
-
611
608
.mt-6 {
612
609
margin-top : 1.5rem ;
613
610
}
@@ -616,13 +613,25 @@ video {
616
613
margin-top : 2rem ;
617
614
}
618
615
616
+ .mr-4 {
617
+ margin-right : 1rem ;
618
+ }
619
+
620
+ .mt-40 {
621
+ margin-top : 10rem ;
622
+ }
623
+
619
624
.line-clamp-1 {
620
625
overflow : hidden;
621
626
display : -webkit-box;
622
627
-webkit-box-orient : vertical;
623
628
-webkit-line-clamp : 1 ;
624
629
}
625
630
631
+ .block {
632
+ display : block;
633
+ }
634
+
626
635
.flex {
627
636
display : flex;
628
637
}
@@ -707,6 +716,10 @@ video {
707
716
cursor : not-allowed;
708
717
}
709
718
719
+ .resize {
720
+ resize : both;
721
+ }
722
+
710
723
.flex-col {
711
724
flex-direction : column;
712
725
}
@@ -858,6 +871,14 @@ video {
858
871
padding-left : 0.125rem ;
859
872
}
860
873
874
+ .pt-16 {
875
+ padding-top : 4rem ;
876
+ }
877
+
878
+ .pr-4 {
879
+ padding-right : 1rem ;
880
+ }
881
+
861
882
.text-center {
862
883
text-align : center;
863
884
}
@@ -934,7 +955,8 @@ video {
934
955
}
935
956
936
957
@media (min-width : 640px ) {
937
- .sm\:mr-6 {
958
+ .sm\:mx-6 {
959
+ margin-left : 1.5rem ;
938
960
margin-right : 1.5rem ;
939
961
}
940
962
@@ -946,6 +968,10 @@ video {
946
968
margin-top : 1.5rem ;
947
969
}
948
970
971
+ .sm\:mr-6 {
972
+ margin-right : 1.5rem ;
973
+ }
974
+
949
975
.sm\:max-h-\[30rem\] {
950
976
max-height : 30rem ;
951
977
}
@@ -967,6 +993,11 @@ video {
967
993
column-gap : 1.5rem ;
968
994
}
969
995
996
+ .sm\:px-0 {
997
+ padding-left : 0px ;
998
+ padding-right : 0px ;
999
+ }
1000
+
970
1001
.sm\:px-6 {
971
1002
padding-left : 1.5rem ;
972
1003
padding-right : 1.5rem ;
@@ -977,6 +1008,14 @@ video {
977
1008
padding-bottom : 6rem ;
978
1009
}
979
1010
1011
+ .sm\:pt-24 {
1012
+ padding-top : 6rem ;
1013
+ }
1014
+
1015
+ .sm\:pr-0 {
1016
+ padding-right : 0px ;
1017
+ }
1018
+
980
1019
.sm\:text-3xl {
981
1020
font-size : 1.875rem ;
982
1021
line-height : 2.25rem ;
@@ -990,14 +1029,19 @@ video {
990
1029
}
991
1030
992
1031
@media (min-width : 1024px ) {
993
- .lg\:mr-8 {
1032
+ .lg\:mx-8 {
1033
+ margin-left : 2rem ;
994
1034
margin-right : 2rem ;
995
1035
}
996
1036
997
1037
.lg\:mt-0 {
998
1038
margin-top : 0px ;
999
1039
}
1000
1040
1041
+ .lg\:mr-8 {
1042
+ margin-right : 2rem ;
1043
+ }
1044
+
1001
1045
.lg\:flex {
1002
1046
display : flex;
1003
1047
}
You can’t perform that action at this time.
0 commit comments