Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26e8457

Browse files
authored
Fix large table overflow (#1446)
1 parent89c2f54 commit26e8457

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

‎pgml-dashboard/src/components/pages/demo/template.html‎

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% use crate::components::tables::small::*; %>
1+
<% use crate::components::tables::{small as small_table, large as large_table}; %>
22
<% use crate::components::headings::{Green, Blue, Gray}; %>
33
<% use crate::components::inputs::text::EditableHeader; %>
44
<% use crate::components::inputs::text::{Input, search::{Search, search::SearchOptions}}; %>
@@ -12,17 +12,42 @@
1212

1313
<divclass="container"data-controller="pages-demo">
1414
<divclass="py-5">
15-
<%+ Table::new(&["Model", "Performance", "Cost"], &[
16-
Row::new(&[
15+
<%+small_table::Table::new(&["Model", "Performance", "Cost"], &[
16+
small_table::Row::new(&[
1717
"intfloat/e5-small".into(),
1818
"5ms/embedding".into(),
1919
"$0.0000000001/embedding".into(),
2020
]).into(),
21-
Row::new(&[
21+
small_table::Row::new(&[
2222
"intfloat/e5-large".into(),
2323
"10ms/embedding".into(),
2424
"$0.0000000002/embedding".into(),
2525
]).into(),
26+
small_table::Row::new(&[
27+
"intfloat/e5-large-with-overflow-intfloat/e5-large-with-overflow-intfloat/e5-large-with-overflow".into(),
28+
"10ms/embedding".into(),
29+
"$0.0000000002/embedding-intfloat/e5-large-with-overflow-intfloat/e5-large-with-overflow".into(),
30+
]).into(),
31+
]) %>
32+
</div>
33+
34+
<divclass="py-5">
35+
<%+ large_table::Table::new(&["Model", "Performance", "Cost"], &[
36+
large_table::Row::new(&[
37+
"intfloat/e5-small".into(),
38+
"5ms/embedding".into(),
39+
"$0.0000000001/embedding".into(),
40+
]).into(),
41+
large_table::Row::new(&[
42+
"intfloat/e5-large".into(),
43+
"10ms/embedding".into(),
44+
"$0.0000000002/embedding".into(),
45+
]).into(),
46+
large_table::Row::new(&[
47+
"intfloat/e5-large-with-overflow-intfloat/e5-large-with-overflow-intfloat/e5-large-with-overflow".into(),
48+
"10ms/embedding".into(),
49+
"$0.0000000002/embedding-intfloat/e5-large-with-overflow-intfloat/e5-large-with-overflow".into(),
50+
]).into(),
2651
]) %>
2752
</div>
2853

‎pgml-dashboard/src/components/tables/large/table/table.scss‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ table.table.table-lg {
1414
background:#{$gray-800};
1515
text-transform:uppercase;
1616
font-size:0.75rem;
17-
padding:16px0;
17+
padding:16px12px16px0;
1818

1919
&:first-of-type {
2020
padding-left:67px;
@@ -42,7 +42,7 @@ table.table.table-lg {
4242
td {
4343
background:#{$gray-600};
4444
vertical-align:middle;
45-
padding:20px0;
45+
padding:20px12px20px0;
4646

4747
&:first-of-type {
4848
padding-left:67px;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp