Skip to content

Commit ea9b3f3

Browse files
committed
fix(styles): Enhanced the file upload styling.
1 parent 3936883 commit ea9b3f3

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

src/app/services/export-pdf-custom-font/export-pdf-custom-font.component.scss

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,46 @@
2424
align-items: center;
2525
gap: 8px;
2626

27+
input[type="file"] {
28+
// Hide the default input
29+
position: absolute;
30+
opacity: 0;
31+
width: 0.1px;
32+
height: 0.1px;
33+
}
34+
2735
label {
2836
font-weight: 500;
37+
padding: 10px 20px;
38+
background-color: #fff;
39+
border: 2px dashed #0078d4;
40+
border-radius: 6px;
41+
cursor: pointer;
42+
color: #0078d4;
43+
transition: all 0.3s ease;
44+
display: inline-block;
45+
46+
&:hover {
47+
background-color: #0078d4;
48+
color: white;
49+
border-style: solid;
50+
transform: translateY(-1px);
51+
box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
52+
}
53+
54+
&:active {
55+
transform: translateY(0);
56+
}
2957
}
3058

3159
.file-name {
3260
color: #28a745;
3361
font-size: 0.9em;
62+
font-weight: 500;
63+
padding: 6px 12px;
64+
background-color: #e8f5e9;
65+
border-radius: 4px;
66+
border: 1px solid #28a745;
3467
}
3568
}
3669

src/app/services/export-pdf-custom-font/export-pdf-custom-font.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class ExportPdfCustomFontComponent implements OnInit {
108108
};
109109

110110
if (this.builtInBoldFontData) {
111-
options.customFont = {
111+
options.customFont.bold = {
112112
name: 'NotoSans-Bold',
113113
data: this.builtInBoldFontData
114114
};

0 commit comments

Comments
 (0)